mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-28 22:16:23 +00:00
31 lines
539 B
Markdown
31 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>
|