Removes legacy context methods childContextTypes and getChildContext from react class component.
Wraps rendered children with Context.
Example
Before
tsx
After
tsx
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
No description available
The easiest way to run this codemod without installing anything globally:
Removes legacy context methods childContextTypes and getChildContext from react class component.
Wraps rendered children with Context.
tsx
tsx
Build your own codemod and share it with the community.