Open johno opened 3 years ago
I think this is a Preact reconciliation thing? Not sure. Preact allows a third argument to render that is the element to replace. Perhaps we should be doing that.
let parent = document.getElementById('app');
render(h(HelloWorld), parent, parent.lastChild);
This only happens with top-level fragments afaict, so maybe there's something about how
render(h(Fragment, ...))
is problematic
I have no idea what's happening here, but the following code results in my pages showing up twice in the built pages:
If I replace
<>
with<div>
everything behaves as expected.