Replace SFCElement with FunctionComponentElement
ProprietaryRenames React's deprecated SFCElement type to FunctionComponentElement, keeping its type arguments, as @types/react 18 removed it. Only references to React's own type are renamed.
org. openrewrite. react.18. deprecated-sfc-elementmod run . --recipe= org. openrewrite. react.18. deprecated-sfc-elementInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.