Replace LegacyRef with Ref
ProprietaryReplaces React's LegacyRef type, deprecated in @types/react 19, with Ref, keeping its type argument.
org. openrewrite. react.19. deprecated-legacy-refmod run . --recipe= org. openrewrite. react.19. deprecated-legacy-refInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.