-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
π Search Terms
jsxRuntime
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about jsxRuntime
β― Playground Link
π» Code
/* @jsxRuntime classic */
export const HelloWorld = () => <h1>Hello world</h1>;π Actual behavior
The jsxRuntime pragma is not respected and function emit follows the jsx option in the TSConfig.
For example, with "jsx": "react-jsx", the function is emitted as
export const HelloWorld = () => _jsx("h1", { children: "Hello world" })π Expected behavior
The jsxRuntime pragma is respected and the function is emitted as
export const HelloWorld = () => React.createElement("h1", null, "Hello world")Additional information about the issue
The code above is copied verbatim from the TSConfig Reference
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.