Skip to content

Commit 5258e6f

Browse files
authored
Merge pull request #10 from Maciejlys/main
New snippet added
2 parents e0e6556 + acd8132 commit 5258e6f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

snippets/component.tsx.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,21 @@
4949
" return <div></div>;",
5050
"};"
5151
],
52-
"description": "Solid empty function componen. With Importst"
52+
"description": "Solid empty function component. With Imports"
53+
},
54+
"Solid empty function component. With Imports and default export": {
55+
"prefix": "scompie",
56+
"body": [
57+
"import { Component } from \"solid-js\";",
58+
"",
59+
"const ${1:${TM_FILENAME_BASE}}: Component<{$2}> = (props) => {",
60+
" $0",
61+
" return <div></div>;",
62+
"};",
63+
"",
64+
"export default ${1:${TM_FILENAME_BASE}};"
65+
],
66+
"description": "Solid empty function component. With Imports and default export"
5367
},
5468
"Solid empty Parent Component. With Imports": {
5569
"prefix": "spcompi",

0 commit comments

Comments
 (0)