docs: mention kebab case naming for islands (#572)

This commit is contained in:
Yuki Tanaka
2022-08-08 21:22:58 +00:00
committed by GitHub
parent 5b9ce720d0
commit 0449a4c73a
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ components that are rendered on the client. This is different from all other
components in Fresh, as they are usually just rendered on the server.
Islands are defined by creating a file in the `islands/` folder in a Fresh
project. The name of this file must be a PascalCase name of the island. The file
must have a default export that is a regular Preact component.
project. The name of this file must be a PascalCase or kebab-case name of the
island. The file must have a default export that is a regular Preact component.
```tsx
// islands/MyIsland.tsx