mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
c0925f3317683e2fc1ce6980b447e160ba4fd3fc
This adds an `InlineJsxTransform` optimization pass, toggled by the
`enableInlineJsxTransform` flag. When enabled, JSX will be transformed
into React Element object literals, preventing runtime overhead during
element creation.
TODO:
- [ ] Add conditionals to make transform PROD-only
- [ ] Make the React element symbol configurable so this works with
runtimes that support `react.element` or `react.transitional.element`
- [ ] Look into additional optimization to pass props spread through
directly if none of the properties are mutated
DiffTrain build for [5dcb009760](https://github.com/facebook/react/commit/5dcb009760160c085496e943f76090d98528f971)
Please do not delete this branch
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%