import { useState } from "preact/hooks"; export default function RootFragmentWithConditionalFirst() { const [shown, setShown] = useState(false); return ( <> {shown &&
I'm rendered on top
} Hello
setShown(true)} id="root-fragment-conditional-first-click-me" > World
); }