TypeScript · Language and Environment

jsx

Specify what JSX code is generated.

Syntax
"jsx": "preserve"

Example

Example
{
  "compilerOptions": {
    "jsx": "preserve"
  }
}

More in this group

emitDecoratorMetadata experimentalDecorators jsxFactory jsxFragmentFactory jsxImportSource libReplacement moduleDetection noLib

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course