Remove implicit ref callback returns

Proprietary

In 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-return
mod run . --recipe=org.openrewrite.react.19.no-implicit-ref-callback-return

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.