React compiler is experimental, but it's safe to use...


React compiler is experimental, but it's safe to use eslint-plugin-react-compiler with ESLint today.

The plugin reports mistakes like:
🚩 Mutating a prop
🚩 Mutating a value returned from a function
🚩 Updating a value used previously in JSX

I just ran this on an existing project and found 60+ issues.
More info here https://react.dev/learn/react-compiler#installing-eslint-plugin-react-compiler

View original on X