wiki/content/20201130085253-react_jsx.md

33 lines
554 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:04:36 +00:00
date: 20201130
2024-05-06 20:40:05 +00:00
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>