A snippet pack to make you more productive working with React.js. Based on the snippets from the Atom React Plugin.
Download this extension from the VS Gallery or get the nightly build.
Snippets include commonly used React specific boilerplate.
The snippets match the ones found here: https://orktes.github.io/atom-react/#snippets-list
Here's the full list:
cdm
- componentDidMount: fn() { ... }cdm6
- ES6 versioncdup
- componentDidUpdate: fn(pp, ps) { ... }cwm
- componentWillMount: fn() { ... }cwm6
- ES6 versioncwr
- componentWillReceiveProps: fn(np) { ... }cwun
- componentWillUnmount: fn() { ... }cwun6
- ES6 versioncwu
- componentWillUpdate: fn(np, ns) { ... }cwu6
- ES6 versioncx
- cx({ ... })fup
- forceUpdate(...)gdp
- getDefaultProps: fn() { return {...} }gis
- getInitialState: fn() { return {...} }ism
- isMounted()pt
- propTypes { ... }pt6
- ES6 versionrcc
- component skeletonrcc6
- ES6 versionren
- render: fn() { return ... }ren6
- ES6 versionsst
- setState({ ... })scu
- shouldComponentUpdate: fn(np, ns) { ... }scu6
- ES6 versionprops
- this.props.props6
- ES6 versionstate
- this.state.trp
- transferPropsTo( ... )rrc
- render(component, container, [callback])