Skip to content

Commit a22ec25

Browse files
bartlomiejuclaude
andcommitted
fix: keep main.tsx for JSX-containing code block in islands.md
Addresses review comment — the snippet contains JSX (<MyIsland />) so the filename must be .tsx, not .ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c6d25a4 commit a22ec25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/latest/concepts/islands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function MyIsland() {
2828
An island can be used anywhere like a regular Preact component. Fresh will take
2929
care of making it interactive on the client.
3030

31-
```tsx main.ts
31+
```tsx main.tsx
3232
import { App, staticFiles } from "fresh";
3333
import MyIsland from "./islands/my-island.tsx";
3434

0 commit comments

Comments
 (0)