Replace LegacyRef with Ref

Proprietary

Replaces React's LegacyRef type, deprecated in @types/react 19, with Ref, keeping its type argument.

org.openrewrite.react.19.deprecated-legacy-ref
mod run . --recipe=org.openrewrite.react.19.deprecated-legacy-ref

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