Skip to content

Feedback: /runtime/reference/jsx/ - Needs Improvement #2463

@denobot

Description

@denobot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedbackFeedback submitted via the Docs feedback componentneeds-improvementNegative Feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions