Compiler-powered lint rules diagnose React rule violations such as setting state during render or unsafe ref access. Fixing a violation can make a component eligible for automatic optimization again.
The demo moves a render-time state update out of render, clears the warning, and enables a cache boundary. Passing lint alone does not guarantee faster rendering; measure performance separately.
When to use
Use it while adopting React Compiler or cleaning up hook and render rule violations.