Files
react/compiled
jackpope c0925f3317 [compiler] Add JSX inlining optimization (#30867)
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)
2024-09-18 08:58:45 -07:00
..