Replace StatelessComponent with FunctionComponent
ProprietaryRenames React's deprecated StatelessComponent type to FunctionComponent, keeping its type arguments, as @types/react 18 removed it. Only references to React's own type are renamed, so another library's StatelessComponent (such as ink's) stays.
org. openrewrite. react.18. deprecated-stateless-componentmod run . --recipe= org. openrewrite. react.18. deprecated-stateless-componentInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.