A collection of ReactJS snippets for Sublime Text 3.
Tab trigger | Suggested shortcut | Description |
---|---|---|
@jsx |
Inserts the /** @jsx React.DOM */ comment. |
|
react.class |
recl |
Inserts a call to React.createClass with an empty render function. |
react.componentDidMount |
ridmo |
Inserts the componentDidMount declaration. |
react.componentDidUpdate |
ridup |
Inserts the componentDidUpdate declaration. |
react.componentWillMount |
rilmo |
Inserts the componentWillMount declaration. |
react.componentWillReceiveProps |
rilrec |
Inserts the componentWillReceiveProps declaration. |
react.componentWillUnmount |
rilun |
Inserts the componentWillUnmount declaration. |
react.componentWillUpdate |
rilup |
Inserts the componentWillUpdate declaration. |
react.customProperty |
rust |
Inserts the customProperty declaration. |
react.getDefaultProps |
rgdp |
Inserts the getDefaultProps declaration. |
react.getInitialState |
rgis |
Inserts the getInitialState declaration. |
react.render |
rere |
Inserts the render declaration. |
react.renderComponent |
recom |
Inserts a call to React.renderComponent . |
react.renderComponentToStaticMarkup |
recomar |
Inserts a call to React.renderComponentToStaticMarkup . |
react.renderComponentToString |
recoming |
Inserts a call to React.renderComponentToString . |
react.shouldComponentUpdate |
rsho |
Inserts the shouldComponentUpdate declaration. |
react.unmountComponentAtNode |
runco |
Inserts a call to React.unmountComponentAtNode . |
JSX completions are provided for all HTML elements, triggerable from within JavaScript.
MIT licensed. See LICENSE
for more details.