Remove RootRef

Proprietary

Replaces <RootRef rootRef={ref}>...</RootRef> by a fragment and removes the import, since RootRef is gone in v5. The rootRef has to become the ref of the child by hand.

org.openrewrite.react.mui.remove-root-ref
mod run . --recipe=org.openrewrite.react.mui.remove-root-ref

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