Files
sweet/tests/fixture_island_nesting/islands/IslandFn.tsx
T

18 lines
315 B
TypeScript

import { VNode } from "preact";
import FragmentIsland from "./FragmentIsland.tsx";
function Foo(props: { children: () => VNode }) {
return props.children();
}
export default function IslandFn() {
return (
<div class="island">
<Foo>
{() => <FragmentIsland />}
</Foo>
</div>
);
}