Files
sweet/tests/fixture_island_nesting/routes/island_jsx_island_jsx.tsx
T

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>
);
}