Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

React18 Legacy Context

Provides the complete migration pattern for React legacy context API (contextTypes, childContextTypes, getChildContext) to the modern createContext API. Use this skill whenever migrating legacy context in class components - this is always a cross-file migration requiring the provider AND all consumers to be updated together. Use it before touching any contextTypes or childContextTypes code, because migrating only the provider without the consumers (or vice versa) will cause a runtime failure. Always read this skill before writing any context migration - the cross-file coordination steps here prevent the most common context migration bugs.

thedixitjain 9399305 4 files · 16.5 KB Updated 2 repo stars

File contents

thedixitjain/the-mega-skill-library/tree/main/library/engineering-core/react18-legacy-context commit 939930501b

Frequently asked questions

npx skillmds add thedixitjain/react18-legacy-context