Snippets and syntax highlighting for Closure/React.js / JSX.
cdm→ componentDidMount: fn() { ... }
cdup→ componentDidUpdate: fn(pp, ps) { ... }
cs→ var cx = React.addons.classSet;
cwm→ componentWillMount: fn() { ... }
cwr→ componentWillReceiveProps: fn(np) { ... }
cwu→ componentWillUpdate: fn(np, ns) { ... }
cwun→ componentWillUnmount: fn() { ... }
cx→ cx({ ... })
fup→ forceUpdate(...)
gdp→ getDefaultProps: fn() { return {...} }
gis→ getInitialState: fn() { return {...} }
ism→ isMounted()
jsx→ /** @jsx */
props→ this.props.
pt→ propTypes { ... }
rcc→ component skeleton
ren→ render: fn() { return ... }
scu→ shouldComponentUpdate: fn(np, ns) { ... }
sst→ setState({ ... })
state→ this.state.
trp→ transferPropsTo( ... )
pa→ adding param js tag
sub→ defining constructor variable for closure class
Only js snippets changed according to my needs.