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