ReactJS
Sublime Text helpers for React. Syntax highlighting DEPRECATED in favor of babel/babel-sublime
Details
Installs
- Total 252K
- Win 114K
- Mac 98K
- Linux 40K
Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 3 | 9 | 1 | 3 | 1 | 2 | 5 | 4 | 3 | 4 | 1 | 3 | 3 | 4 | 5 | 3 | 3 | 6 | 3 | 0 | 1 | 1 | 5 | 0 | 1 | 4 | 4 | 4 | 2 | 7 | 2 | 2 | 5 | 6 | 2 | 1 | 2 | 1 | 1 | 4 | 4 | 3 | 5 | 5 | 2 |
Mac | 1 | 2 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 4 | 2 | 2 | 1 | 2 | 0 | 2 | 1 | 1 | 1 | 3 | 1 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 0 | 2 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 0 | 2 | 1 | 3 | 1 | 1 |
Linux | 1 | 0 | 4 | 1 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 0 | 3 | 3 | 0 | 2 | 2 | 1 | 1 | 2 | 0 | 4 | 3 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 3 | 1 | 1 | 2 | 0 | 0 | 1 | 1 | 0 | 1 | 2 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
sublime-react
Snippets for ReactJS. This package used to provide JSX syntax highlighting and has been DEPRECATED in favor of babel/babel-sublime.
Installation
Install the React package via Sublime's Package Manager
You will need the Sublime Package Manager.
Open the command palette:
⌘+shift+p
on MacOS/Linux,ctrl+shift+p
on Windowstype
install
, selectPackage Control: Install Package
type
React
, selectReactJS
Usage
Syntax highlighting
Syntax highlighting is no longer provided by this packages. We recommend that you use (babel-sublime) instead.
Snippets
It's easy! Simply activate snippets by typing a mnemonic followed by TAB.
Snippets are available for both JSX and CJSX (React CoffeeScript).
Documentation of available snippets (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({ ... })
fdn→ React.findDOMNode(...)
fup→ forceUpdate(...)
gdp→ getDefaultProps: fn() { return {...} }
gis→ getInitialState: fn() { return {...} }
ism→ isMounted()
props→ this.props.
pt→ propTypes { ... }
rcc→ component skeleton
refs→ this.refs.
ren→ render: fn() { return ... }
scu→ shouldComponentUpdate: fn(np, ns) { ... }
sst→ this.setState({ ... })
state→ this.state.
Contributing
Rebuilding the docs
After making changes to snippet files, run npm install && npm run build-docs
to automatically generate this document from source. Do not make changes to README.md directly.
Contributor License Agreement
Contributions are very welcome, but we ask that you please fill out our CLA in order for us to accept your pull request.