Skip to content

Commit 6e89077

Browse files
authored
Fix pnpm command and first tsx example in typescript.mdx (#943)
1 parent 51dd8d9 commit 6e89077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/routes/configuration/typescript.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
129129
4. 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

145145
If using an existing JavaScript component, import the TypeScript component:

0 commit comments

Comments
 (0)