Remove implicit ref callback returns
ProprietaryIn React 19, ref callbacks can return cleanup functions. Arrow functions with expression bodies implicitly return values, which React would interpret as cleanup functions. This recipe wraps them in block bodies.
org. openrewrite. react.19. no-implicit-ref-callback-returnmod run . --recipe= org. openrewrite. react.19. no-implicit-ref-callback-returnInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.