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