Skip to content

Commit

Permalink
[#544] vscode react component snippet 작성 (#545)
Browse files Browse the repository at this point in the history
* feat: vscode react component snippet 작성 (#545)
  • Loading branch information
gxxrxn committed Jun 17, 2024
1 parent 56137df commit 68dc181
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .vscode/react.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"create a default export react component": {
"scope": "javascriptreact,typescriptreact",
"prefix": ["!tsx", "!jsx"],
"body": [
"type ${1:${TM_FILENAME_BASE/(.*)\\..+$/$1/}}Props = {",
" ${2:// remove this comment}",
"};",
"",
"const ${1} = (_props: ${1}Props) => {",
" ${0}",
" return ${3:<></>};",
"};",
"",
"export default ${1};",
""
]
}
}

0 comments on commit 68dc181

Please sign in to comment.