• React/Create Element To Jsx

    This codemod transforms React.createElement calls into JSX syntax, making your code more readable and maintainable.

    by@alexbit-codemod
  • React/Update React Imports

    This codemod transforms React imports to use named imports instead of default or namespace imports. This helps reduce bundle size by allowing better tree-shaking of unused React exports.

    by@alexbit-codemod
  • React/19/Migration Recipe

    This recipe is a set of codemods that will fix some of React 19 breaking changes.

    by@alexbit-codemod
  • React/19/Replace Create Factory

    Replaces deprecated React.createFactory method with JSX.

    by@alexbit-codemod
  • React/Replace React Fc Typescript

    This codemod removes React.FC, React.FunctionComponent and React.SFC and replaces the Props as the type of the unique argument in the component definition.

    by@alexbit-codemod
  • React/Prop Types Typescript

    Codemod to convert React PropTypes to TypeScript types.

    by@alexbit-codemod
  • React/19/Use Context Hook

    This codemod will convert the usage of useContext to the new hook format, introduced in React v19.

    by@alexbit-codemod
  • React/19/Replace Use Form State

    This codemod will replace the usages of useFormState() to use useActionState(), introduced in React v19.

    by@alexbit-codemod
  • React/19/Replace String Ref

    This codemod migrates string refs (deprecated) to callback refs.

    by@alexbit-codemod
  • React/19/Replace Reactdom Render

    • Replaces usages of ReactDom.render() with createRoot(node).render().
    • Replaces usages of ReactDom.hydrate() with hydrateRoot()
    • Replaces usages of ReactDom.unmountComponentAtNode() with root.unmount()
    by@alexbit-codemod
  • React/19/Replace React Test Renderer Import

    Replaces react-test-renderer/shallow import.

    by@alexbit-codemod
  • React/19/Replace Default Props

    Replaces default props with ES6 default parameters.

    by@alexbit-codemod
  • React/19/Replace Act Import

    This codemod will replace the usages of TestUtils.act() to use React.act(), introduced in React v19.

    by@alexbit-codemod
  • React/19/Remove Memoization

    This codemod will remove manual memoization hooks: useCallback, useMemo and memo. This codemod goes hand in hand with React Compiler.

    by@alexbit-codemod
  • React/19/Remove Legacy Context

    Removes legacy context methods childContextTypes and getChildContext from react class component. Wraps rendered children with Context.

    by@alexbit-codemod
  • React/19/Remove Forward Ref

    React.forwardRef will be deprecated for Function Components in near future. This codemod removes forwardRef function.

    by@alexbit-codemod
  • React/19/Remove Context Provider

    This codemod will remove the usage of Provider for contexts; e.g., Context.Provider to Context

    by@alexbit-codemod
  • Classnames To Clsx

    Converts classnames to clsx.