Description

Support production compiles1 for React 17’s jsx and jsxs factory functions.

Example

// ./src/tsconfig.json
{
    "compilerOptions": {
        "module": "esnext",
        "target": "es2015",
        "jsx": "react-jsx",
        "strict": true
    },
    "include": [
        "./**/*"
    ]
}

Footnotes

Footnotes

  1. https://github.com/microsoft/TypeScript/pull/39199