NestarZN
Denoโ€ข3y agoโ€ข
2 replies
NestarZ

Preact Hello World is not working

/** @jsxImportSource https://esm.sh/preact */
import { useState } from "https://esm.sh/preact/hooks";

export const A = () => {
const [d] = useState(1);
return (
<div>
{d}
</div>
);
};

const v = A();

I'm trying to start this simple program but it leads to

error: Uncaught TypeError: Cannot read properties of undefined (reading '__H')

Can you help me please ?

I'm running it using deno run -A test.tsx
Was this page helpful?