ReactJS
Sublime Text helpers for React. Syntax highlighting DEPRECATED in favor of babel/babel-sublime
Details
Installs
- Total 247K
- Win 111K
- Mac 97K
- Linux 39K
Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 5 | 8 | 8 | 15 | 7 | 2 | 9 | 5 | 11 | 13 | 5 | 9 | 4 | 3 | 7 | 7 | 12 | 10 | 3 | 8 | 9 | 15 | 8 | 10 | 6 | 12 | 7 | 11 | 7 | 5 | 11 | 12 | 5 | 7 | 5 | 6 | 2 | 11 | 6 | 8 | 1 | 4 | 13 | 11 | 9 | 10 |
Mac | 4 | 3 | 4 | 4 | 2 | 1 | 3 | 3 | 4 | 5 | 9 | 3 | 0 | 1 | 1 | 4 | 3 | 5 | 2 | 1 | 1 | 2 | 2 | 5 | 4 | 3 | 2 | 3 | 2 | 1 | 4 | 5 | 2 | 2 | 0 | 5 | 7 | 4 | 6 | 2 | 2 | 6 | 5 | 4 | 6 | 9 |
Linux | 0 | 3 | 3 | 3 | 3 | 2 | 2 | 3 | 3 | 2 | 2 | 6 | 0 | 0 | 6 | 3 | 5 | 2 | 2 | 0 | 3 | 4 | 5 | 1 | 4 | 2 | 4 | 7 | 1 | 1 | 4 | 1 | 5 | 2 | 5 | 2 | 0 | 2 | 1 | 3 | 4 | 2 | 2 | 7 | 4 | 2 |
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.