feat: allow passing JSX children to island + nested islands (#1285)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
export default function Island(props: { children?: ComponentChildren }) {
|
||||
return (
|
||||
<div class="island">
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user