fix(ssr): invalid HTML comment tags (#1260)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user