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
2 Replies
Sure, I'd be happy to help. Could you please provide me with the question you'd like me to answer?
🦕 Oops! Can you pinpoint where I went wrong to help me improve? 📈