Replace ReactChild with ReactElement | number | string

Proprietary

Replaces React's ReactChild type, removed in @types/react 19, with ReactElement | number | string, parenthesized where needed.

org.openrewrite.react.19.deprecated-react-child
mod run . --recipe=org.openrewrite.react.19.deprecated-react-child

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