Documentation Feedback
Path: /runtime/reference/jsx/
Helpful: No ❌
Feedback:
https://docs.deno.com/runtime/reference/jsx/#default-configuration gives users the illusion of being able to directly use JSX but following project:
deno.json
{
"imports": {
"react": "npm:react"
}
}
main.tsx
import React from "react"
const Foo = () => <div>Hello, World!</div>
console.log(<Foo />)
will fail to type check with:
JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.deno-ts(7026)
GitHub User: @scarf005
This issue was automatically created from the documentation feedback system.
Documentation Feedback
Path: /runtime/reference/jsx/
Helpful: No ❌
Feedback:
deno.json{ "imports": { "react": "npm:react" } }main.tsxwill fail to type check with:
GitHub User: @scarf005
This issue was automatically created from the documentation feedback system.