react-19-replace-create-factory
Replace deprecated React.createFactory(...) and createFactory(...) calls with JSX.
This codemod mirrors react/19/replace-create-factory from codemod/commons.
Usage
bashnpx codemod react-19-replace-create-factory --target <path>
Example
Before
tsximport { createFactory } from "react"; const route = createFactory(Route);
After
tsxconst route = <Route />;