Skip to content

Commit d50066c

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Update Snippets
1 parent 5258e6f commit d50066c

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const ${1:${TM_FILENAME_BASE}}: VoidComponent<{$2}> = (props) => {
125125
</details></td></tr>
126126
<tr>
127127
<td><code>scompi→</code></td>
128-
<td>Solid empty function componen. With Importst</td>
128+
<td>Solid empty function component. With Imports</td>
129129
<td><b>tsx</b></td>
130130
</tr>
131131
<tr><td colspan="3"><details>
@@ -140,6 +140,26 @@ const ${1:${TM_FILENAME_BASE}}: Component<{$2}> = (props) => {
140140
};
141141
```
142142

143+
</details></td></tr>
144+
<tr>
145+
<td><code>scompie→</code></td>
146+
<td>Solid empty function component. With Imports and default export</td>
147+
<td><b>tsx</b></td>
148+
</tr>
149+
<tr><td colspan="3"><details>
150+
<summary><sup>Toggle Code Snippet</sup></summary>
151+
152+
```tsx
153+
import { Component } from "solid-js";
154+
155+
const ${1:${TM_FILENAME_BASE}}: Component<{$2}> = (props) => {
156+
$0
157+
return <div></div>;
158+
};
159+
160+
export default ${1:${TM_FILENAME_BASE}};
161+
```
162+
143163
</details></td></tr>
144164
<tr>
145165
<td><code>spcompi→</code></td>

0 commit comments

Comments
 (0)