dillon1000/react
Commit
Browse files fix(react-compiler): optimize components declared with arrow function and implicit return and `compilationMode: 'infer'` (#31792)
fixes https://github.com/facebook/react/issues/31601 https://github.com/facebook/react/issues/31639 cc @josephsavona
Changed paths3 files
First-parent comparisoncompiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts ModifiedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/arrow-function-with-implicit-return.expect.md AddedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/arrow-function-with-implicit-return.js AddedPatch
Files changed
Rendering syntax-highlighted changes…