--- description: | Islands enable client side interactivity in Fresh. They are hydrated on the client in addition to being rendered on the server. --- Islands enable client side interactivity in Fresh. Islands are isolated Preact 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. ```tsx // islands/MyIsland.tsx /** @jsx h */ import { h } from "preact"; import { useState } from "preact/hooks"; export default function MyIsland() { const [count, setCount] = useState(0); return (