Provides the complete migration pattern for React legacy context API (contextTypes, childContextTypes, getChildContext) to the modern createContext API. Use…
React 18 Legacy Context Migration Legacy context (contextTypes, childContextTypes, getChildContext) was deprecated in React 16.3 and warns in React 18.3.1. It is removed in React 19. This Is Always a Cross-File Migration Unlike most other migrations that touch one file at a time, context migration requires coordinating: Create the context object (usually a new file) Update the provider component Update every consumer component Missing any consumer leaves the app broken - it will read from the wrong context or get undefined. Migration Steps (Always Follow This Order)
don't have the plugin yet? install it then click "run inline in claude" again.