scarfS
Deno4mo ago
scarf

how to properly type preact/compat?

i've read https://github.com/preactjs/preact/discussions/4252
but
"imports": {
    "react": "npm:preact@^10.26.2/compat",
    "react-dom": "npm:preact@^10.26.2/compat",
    "@types/react": "npm:preact@^10.26.2/compat",
}

still doesn't work
image.png
GitHub
There is a section on the Getting Started page called "Aliasing React to Preact". There is no example for how to do this in a Deno project. So 1) I'd like to ask how to do so in a Den...
Aliasing React to Preact in Deno · preactjs preact · Discussion #...
Was this page helpful?