NestarZ
NestarZ•13mo ago

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