-
Notifications
You must be signed in to change notification settings - Fork 3
/
.snippets.json
27 lines (26 loc) · 1.37 KB
/
.snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"javascript": {
"snippets": {
"rf": "import React, { Component } from 'react';\nclass Example extends Component {\n\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\tthis.state = {\n\n\t\t};\n\t\tthis.onExample = this onExample.bind(this);\n\t}\n\n\tonExample() {\n\n\t}\n\n\trender() {\n\t\tconst { onExample } = this.props;\n\t\treturn (\n\t\t\t<div className=\"Example\">\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default Example;",
"ri": "import React, { Component } from 'react';\n",
"rcc": "class App extends Component {\n${cursor}\n}",
"pt": "propTypes: {\n\t${cursor}\n},",
"gdp": "getDefaultProps: function() {\n\treturn {\n\t${cursor}\n\t};\n},",
"gis": "getInitialState: function() {\n\treturn {\n\t${cursor}\n\t};\n},",
"cdm": "componentDidMount () {\n\t${cursor} \n},",
"cwm": "componentWillMount () {\n\t${cursor}\n},",
"cdup": "componentDidUpdate () {\n\t${cursor}\n},",
"crw": "componentWillReceiveProps () {\n\t${cursor}\n},",
"cwun": "componentWillUnmount () {\n\t${cursor}\n},",
"cwu": "componentWillUpdate () {\n\t${cursor}\n},",
"sst": "setState({\n\t${cursor}\n});"
},
"abbreviations":{
}
},
"jsx": {
"snippets": {
"extends": "javascript"
}
}
}