27 lines
471 B
TypeScript
27 lines
471 B
TypeScript
import { ComponentChildren } from "preact";
|
|
import Island from "../islands/Island.tsx";
|
|
|
|
function Foo(props: { children?: ComponentChildren }) {
|
|
return (
|
|
<div class="server">
|
|
{props.children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div id="page">
|
|
<Island>
|
|
<Foo>
|
|
<Island>
|
|
<Foo>
|
|
<p>it works</p>
|
|
</Foo>
|
|
</Island>
|
|
</Foo>
|
|
</Island>
|
|
</div>
|
|
);
|
|
}
|