scarf
scarf18h ago

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",
}
"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
GitHub
Aliasing React to Preact in Deno · preactjs preact · Discussion #...
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...
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?