wiki/content/20201130085253-react_jsx.md

32 lines
554 B
Markdown

---
date: 20201130
id: d5fd25f6-d553-4cf8-a685-4cd4a31ab6ac
title: react-jsx
---
# Description
Support production compiles[^1] for React 17's
[jsx](20201130085253-react_jsx) and
[jsxs](20201130084716-jsxs_react_factory_function) factory functions.
# Example
``` json
// ./src/tsconfig.json
{
"compilerOptions": {
"module": "esnext",
"target": "es2015",
"jsx": "react-jsx",
"strict": true
},
"include": [
"./**/*"
]
}
```
# Footnotes
[^1]: <https://github.com/microsoft/TypeScript/pull/39199>