Skip to content

Commit

Permalink
Add rfv for React, compatible with Vite (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamimendoza authored Feb 12, 2024
1 parent b6a8d1e commit 97207ad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snippets/javascript/react-es7.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,18 @@
],
"description": "Creates a React Functional Component with ES7 module system"
},
"reactFunctionalViteComponent": {
"prefix": "rfcv",
"body": [
"export default function ${1:${TM_FILENAME_BASE}}() {",
" return (",
" <div>${1:first}</div>",
" )",
"}",
""
],
"description": "Creates a React Functional Component with ES7 module system, compatible with Vite"
},
"reactFunctionalComponentRedux": {
"prefix": "rfcredux",
"body": [
Expand Down

0 comments on commit 97207ad

Please sign in to comment.