React/19/Replace Create Factory

1.0.1Last update Sep 12, 2025
by@Codemod
React
migration

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

background illustrationGet Started Now