mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
11 lines
276 B
TypeScript
11 lines
276 B
TypeScript
|
// 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 />);
|