Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@
],
"description": "Creates a React Functional Component with ES7 module system with PropTypes"
},
"reactArrowFunctionComponent": {
"prefix": ["rafc", "rafce"],
"reactArrowFunctionExportComponent": {
"prefix": ["rafce"],
"body": [
"import React from 'react'",
"",
Expand All @@ -364,6 +364,22 @@
],
"description": "Creates a React Arrow Function Component with ES7 module system"
},
"reactArrowFunctionComponent": {
"prefix": ["rafc"],
"body": [
"import React from 'react'",
"",
"export const ${1:${TM_FILENAME_BASE}} = () => {",
"\treturn (",
"\t\t<div>",
"\t\t\t$0",
"\t\t</div>",
"\t)",
"}",
""
],
"description": "Creates a React Arrow Function Component with ES7 module system"
},
"reactArrowFunctionComponentWithPropTypes": {
"prefix": "rafcp",
"body": [
Expand Down