Registry
Ccodemod-com-bot avatar

react-19-remove-legacy-context

Remove legacy childContextTypes/getChildContext usage from React class components

codemod-com-bot56 executions

  • React
  • Context
  • Legacy
Connect a repo
npx codemod react-19-remove-legacy-context

react-19-remove-legacy-context

Remove legacy childContextTypes and getChildContext() usage from React class components and wrap rendered JSX with a new context.

Usage

bash
npx codemod react-19-remove-legacy-context --target <path>

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.