blob: efb95ec901046447912275216a1a75a5c8bc43aa (
plain)
1
2
3
4
5
6
7
8
9
10
|
// this previously was ending up with two preacts and would crash
import { useMemo } from "preact/hooks";
import renderToString from "preact-render-to-string";
function Test() {
useMemo(() => "test", []);
return <div>Test</div>;
}
const html = renderToString(<Test />);
|