Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
React
migration
byalexbit-codemod
React/19/Replace Create Factory
Last update
Jul 24, 2024
Replaces deprecated React.createFactory
method with JSX.
Example
Before
import { createFactory } from 'react';const route = createFactory(Route);
After
const route = <Route />;
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community