Skip to content

Commit 250a904

Browse files
authored
Merge pull request #1 from whoisryosuke/fix/rfcp
🐛 Fixed rfcp by defining component name
2 parents 16a45df + 9db0ce3 commit 250a904

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

snippets/snippets.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
"import React from 'react'",
316316
"import PropTypes from 'prop-types'",
317317
"",
318-
"export default () => {",
318+
"const ${1:${TM_FILENAME_BASE}} = () => {",
319319
" return (",
320320
" <div>",
321321
" $0",
@@ -326,6 +326,9 @@
326326
"${1:${TM_FILENAME_BASE}}.propTypes = {",
327327
"",
328328
"}",
329+
"",
330+
"export default ${1:${TM_FILENAME_BASE}}",
331+
"",
329332
""
330333
],
331334
"description": "Creates a React Functional Component with ES7 module system with PropTypes"

0 commit comments

Comments
 (0)