sublime中支持React的Snippets片段插件--ReactJS
来源:互联网 发布:阿里云备案拍照地点 编辑:程序博客网 时间:2024/05/17 06:36
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.
- sublime中支持React的Snippets片段插件--ReactJS
- sublime支持react的插件大全
- Sublime Text Snippets(代码片段)功能
- Sublime Text Snippets(代码片段)功能
- sublime text 3插件-Emmet Css Snippets
- Sublime Text自定制代码片段(Code Snippets)
- Sublime Text自定制代码片段(Code Snippets)
- Sublime Text自定制代码片段(Code Snippets)
- sublime中安装插件emmet , zen-coding,emmet css snippets 两种html/css编辑利器
- myeclipse / Snippets的配置(代码片段)
- sublime中pre代码片段的设置
- 你可能不知道的提高react编写效率5倍的vscode插件- React/Redux/react-router Snippets
- ReactJS 学习 sublime 下安装 babel插件
- Sublime Text 3 支持的热门插件
- sublime text css动画插件-Animate.css-Snippets
- 写CUDA必备sublime text插件:CUDA Snippets
- sublime自定义代码片段+emmet插件自定义
- ReactJs和React Native的那些事
- jQuery动画animate方法使用介绍
- PG学习第二篇:JASON数据类型的使用
- Android - webview原生和JavaScript(js)交互传值的几种方式
- springMVC整合swagger
- window.open浏览器弹出新窗口被拦截—原因分析和解决方案
- sublime中支持React的Snippets片段插件--ReactJS
- Matlab中画参数方程图像
- 数据结构中的双向链表
- 登陆界面 记住密码功能
- 什么是架构师和如何成为一个架构师
- Unity5.5 Lighting Scene
- c语言结构体模拟c++对象的方法,并实现this指针
- AngularJS配置.run()块中设置路由事件的监听器以及过滤未经授权的请求。
- 关闭linux退格键和vi发出的嘟嘟声