guocheng / st3-reactjs-snippets

A collection of ReactJS snippets for Sublime Text 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

st3-reactjs-snippets

A collection of ReactJS snippets for Sublime Text 3.

Snippets

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

JSX completions are provided for all HTML elements, triggerable from within JavaScript.

License

MIT licensed. See LICENSE for more details.

About

A collection of ReactJS snippets for Sublime Text 3

License:MIT License


Languages

Language:JavaScript 100.0%