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
Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 2 | 0 | 2 | 3 | 0 | 5 | 3 | 2 | 1 | 3 | 4 | 1 | 2 | 1 | 1 | 3 | 1 | 3 | 0 | 5 | 2 | 0 | 3 | 2 | 1 | 2 | 3 | 4 | 4 | 0 | 1 | 5 | 2 | 3 | 1 | 1 | 1 | 0 | 2 | 1 | 2 | 2 | 4 | 1 |
Mac | 0 | 3 | 2 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 2 | 1 | 3 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 3 | 2 | 1 | 2 | 0 | 2 |
Linux | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 3 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 1 | 0 | 3 | 1 | 0 | 0 | 0 | 2 | 2 | 1 | 2 | 1 | 1 | 2 | 0 | 1 | 2 | 0 | 2 | 1 | 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.