Skip to content

Commit 8df076f

Browse files
committed
new snippet with default export added
1 parent 67654e0 commit 8df076f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

snippets/component.tsx.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@
5151
],
5252
"description": "Solid empty function componen. With Imports"
5353
},
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 componen. With Imports and default export"
67+
},
5468
"Solid empty Parent Component. With Imports": {
5569
"prefix": "spcompi",
5670
"body": [

0 commit comments

Comments
 (0)