mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 13:06:22 +00:00
32 lines
539 B
Markdown
32 lines
539 B
Markdown
|
---
|
||
|
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>
|