Skip to content

Commit

Permalink
Merge pull request #27 from VincentBel/patch-1
Browse files Browse the repository at this point in the history
fix typo: Compoment -> Component
  • Loading branch information
xabikos authored Jun 26, 2017
2 parents b950250 + 700fb0d commit b3abee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"reactClassCompoment": {
"reactClassComponent": {
"prefix": "rcc",
"body": "import React, { Component } from 'react';\n\nclass ${1:componentName} extends Component {\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t$0\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default ${1:componentName};",
"description": "Creates a React component class with ES6 module system"
},

"reactJustClassCompoment": {
"reactJustClassComponent": {
"prefix": "rcjc",
"body": "class ${1:componentName} extends Component {\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t$0\n\t\t\t</div>\n\t\t);\n\t}\n}\n",
"description": "Creates a React component class with ES6 module system"
},

"reactClassCompomentPropTypes": {
"reactClassComponentPropTypes": {
"prefix": "rccp",
"body": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nclass ${1:componentName} extends Component {\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t$0\n\t\t\t</div>\n\t\t);\n\t}\n}\n\n${1:componentName}.propTypes = {\n\n};\n\nexport default ${1:componentName};",
"description": "Creates a React component class with PropTypes and ES6 module system"
},

"reactClassCompomentWithMethods": {
"reactClassComponentWithMethods": {
"prefix": "rcfc",
"body": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nclass ${1:componentName} extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t}\n\n\tcomponentWillMount() {\n\n\t}\n\n\tcomponentDidMount() {\n\n\t}\n\n\tcomponentWillReceiveProps(nextProps) {\n\n\t}\n\n\tshouldComponentUpdate(nextProps, nextState) {\n\n\t}\n\n\tcomponentWillUpdate(nextProps, nextState) {\n\n\t}\n\n\tcomponentDidUpdate(prevProps, prevState) {\n\n\t}\n\n\tcomponentWillUnmount() {\n\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\n\t\t\t</div>\n\t\t);\n\t}\n}\n\n${1:componentName}.propTypes = {\n\n};\n\nexport default ${1:componentName};",
"description": "Creates a React component class with PropTypes and all lifecycle methods and ES6 module system"
Expand Down

0 comments on commit b3abee1

Please sign in to comment.