Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ba6e0be

Browse files
committed
Update README
1 parent 9829cd5 commit ba6e0be

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

‎README.md‎

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vim React Snippets
22

3-
A Vim snippet library for React.
3+
A Vim snippet library for React in ES6.
44

55
Requires [UltiSnips](https://github.com/SirVer/ultisnips).
66

@@ -16,3 +16,39 @@ Plug 'epilande/vim-react-snippets'
1616
Plug 'SirVer/ultisnips'
1717
```
1818

19+
## Snippets
20+
21+
| Trigger | Content |
22+
| -------: | ------- |
23+
| `rcc→` | class component skeleton |
24+
| `rcc→` | legacy component skeleton |
25+
| `cdm→` | `componentDidMount() {...}` |
26+
| `cdup→` | `componentDidUpdate(prevProps, prevState) {...}` |
27+
| `cwm→` | `componentWillMount() {...}` |
28+
| `cwr→` | `componentWillReceiveProps(nextProps) {...}` |
29+
| `cwun→` | `componentWillUnmount() {...}` |
30+
| `cwup→` | `componentWillUpdate(nextProps, nextState) {...}` |
31+
| `fdn→` | `React.findDOMNode(...)` |
32+
| `gdp→` | `getDefaultProps() {...}` |
33+
| `gis→` | `getInitialState() {...}` |
34+
| `ren→` | `render() {...}` |
35+
| `sst→` | `this.setState(...)` |
36+
| `scu→` | `shouldComponentUpdate(nextProps, nextState) {...}` |
37+
| `props→` | `this.props` |
38+
| `state→` | `this.state` |
39+
| `pt→` | `propTypes { ... }` |
40+
| `pta→` | `PropTypes.arrayOf` |
41+
| `ptai→` | `PropTypes.arrayOf (Instances)` |
42+
| `ptb→` | `PropTypes.bool` |
43+
| `pte→` | `PropTypes.element` |
44+
| `ptf→` | `PropTypes.func` |
45+
| `pti→` | `PropTypes.instanceOf` |
46+
| `ptn→` | `PropTypes.number` |
47+
| `ptn→` | `PropTypes.node` |
48+
| `pto→` | `PropTypes.object` |
49+
| `ptof→` | `PropTypes.oneOf (Enum)` |
50+
| `ptof→` | `PropTypes.objectOf` |
51+
| `ptoft→` | `PropTypes.oneOfType (Union)` |
52+
| `pts→` | `PropTypes.string` |
53+
| `ptsp→` | `PropTypes.shape` |
54+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /