React/19/Replace Create Factory

1.0.0Last update Jul 24, 2024
by@alexbit-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