React
migration
byCodemod

React/19/Replace Create Factory

/icons/calendar.svg

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

background illustrationGet Started Now