Add babel-plugin-react-compiler to build config automatically removes unreachable branches and memoizes stable props at build time. Run npx react-compiler-check for audit reports.
Example:-
How do you implement React Compiler v2 with dead code elimination?
Add babel-plugin-react-compiler to build config automatically removes unreachable branches and memoizes stable props at build time. Run npx react-compiler-check for audit reports.
Example:-