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

10 lines
237 B
TypeScript

import { Signal } from "@preact/signals";
export interface IslandConditionalProps {
show: Signal<boolean>;
}
export default function IslandConditional({ show }: IslandConditionalProps) {
return show.value ? <>it works</> : null;
}