fix(ssr): invalid HTML comment tags (#1260)

This commit is contained in:
Marvin Hagemeister
2023-06-09 11:21:36 +02:00
committed by GitHub
parent 347e353357
commit 5724b73e71
23 changed files with 179 additions and 18 deletions
@@ -0,0 +1,13 @@
import { useEffect } from "preact/hooks";
export default function Test() {
useEffect(() => {
document.getElementById("foo")!.textContent = "it works";
}, []);
return (
<p id="foo">
it doesn't work
</p>
);
}