Skip to content

Commit 1e034bc

Browse files
authored
replace JSX.IntristicElement with ComponentProps
1 parent 0b99e69 commit 1e034bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/component.tsx.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"prefix": "shtmlcomp",
9292
"body": [
9393
"const ${1:${TM_FILENAME_BASE}}: ParentComponent<",
94-
" JSX.IntrinsicElements[\"${2:div}\"] & {",
94+
" ComponentProps<\"${2:div}\"> & {",
9595
" $0",
9696
" }",
9797
"> = (props) => {",
@@ -105,10 +105,10 @@
105105
"Component extending an HTML Element. With Imports": {
106106
"prefix": "shtmlcompi",
107107
"body": [
108-
"import { ParentComponent, splitProps, JSX } from \"solid-js\";",
108+
"import { ParentComponent, splitProps, ComponentProps } from \"solid-js\";",
109109
"",
110110
"const ${1:${TM_FILENAME_BASE}}: ParentComponent<",
111-
" JSX.IntrinsicElements[\"${2:div}\"] & {",
111+
" ComponentProps<\"${2:div}\"> & {",
112112
" $0",
113113
" }",
114114
"> = (props) => {",

0 commit comments

Comments
 (0)