We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16a45df + 9db0ce3 commit 250a904Copy full SHA for 250a904
snippets/snippets.json
@@ -315,7 +315,7 @@
315
"import React from 'react'",
316
"import PropTypes from 'prop-types'",
317
"",
318
- "export default () => {",
+ "const ${1:${TM_FILENAME_BASE}} = () => {",
319
" return (",
320
" <div>",
321
" $0",
@@ -326,6 +326,9 @@
326
"${1:${TM_FILENAME_BASE}}.propTypes = {",
327
328
"}",
329
+ "",
330
+ "export default ${1:${TM_FILENAME_BASE}}",
331
332
""
333
],
334
"description": "Creates a React Functional Component with ES7 module system with PropTypes"
0 commit comments