Replace React.createFactory with React.createElement
ProprietaryReplaces React.createFactory(type)(props, children) with React.createElement(type, props, children). React.createFactory was deprecated in React 15.6 and removed in React 16.
org. openrewrite. react.16. replace-create-factorymod run . --recipe= org. openrewrite. react.16. replace-create-factoryInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.