dillon1000/react
Commit
Browse files [compiler] Store original and new prop names (#31440)
Previously, we'd directly store the original attributes from the jsx expressions. But this isn't enough as we want to rename duplicate attributes. This PR refactors the prop collection logic to store both the original and new names for jsx attributes in the newly outlined jsx expression. For now, both the new and old names are the same. In the future, they will be different when we add support for outlining expressions with duplicate attribute names.
Changed paths1 file
First-parent comparisoncompiler/packages/babel-plugin-react-compiler/src/Optimization/OutlineJsx.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…