File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ yarn dlx tsc --init
9595
9696<div id = " pnpm" >
9797``` bash frame="none"
98- pnpm dlx tsc --init
98+ pnpm tsc --init
9999```
100100</div >
101101
@@ -129,17 +129,17 @@ bunx tsc --init
1291294 . Create a TypeScript or ` .tsx ` file to test the setup.
130130
131131``` typescript
132- import { type Component } from " solid-js"
132+ import { type Component } from " solid-js" ;
133133
134- function MyTsComponent(): JSX . Element {
134+ const MyTsComponent(): Component = () => {
135135 return (
136136 <div >
137137 <h1 >This is a TypeScript component < / h1 >
138138 < / div >
139- )
139+ );
140140}
141141
142- export default MyTsComponent
142+ export default MyTsComponent ;
143143```
144144
145145If using an existing JavaScript component, import the TypeScript component:
You can’t perform that action at this time.
0 commit comments