Files
sweet/tests/fixture_partials/routes/keys_outside/index.tsx
T

16 lines
295 B
TypeScript

import { ComponentChildren } from "preact";
export default function SlotDemo() {
return (
<div>
<Foo key="A">A</Foo>
<Foo key="B">B</Foo>
<Foo key="C">C</Foo>
</div>
);
}
function Foo(props: { children?: ComponentChildren }) {
return <p>{props.children}</p>;
}