Tiny Snippets of React for Atom editor.
This package autocompletes..
// Typing `componentwillreceiveprops` leads...// $1 is next your cursor position/*** componentWillReceiveProps* @param {object} nextProps React props.* @return {void}*/componentWillReceiveProps(nextProps) {$1}
Run the following command:
$ apm install react-tiny-snippets
Alternatively go to Atom > Preferences > Packages
and search for react-tiny-snippets
.
git clone git@github.com:kamataryo/react-tiny-snippets.gitcd react-tiny-snippetsnpm installnpm run build
Issues and PRs are welcome.
propTypes
and defaultProps
componentDidCatch
snippet for React v16Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.