D
Deno

help

Preact Hello World is not working

NNestarZ11/18/2023
/** @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
DAHDeno AI Helper11/18/2023
Sure, I'd be happy to help. Could you please provide me with the question you'd like me to answer?
DAHDeno AI Helper11/18/2023
🦕 Oops! Can you pinpoint where I went wrong to help me improve? 📈

Looking for more? Join the community!