React18 Legacy Context

Migrate React legacy context API usage from contextTypes, childContextTypes, and getChildContext to modern createContext. Use this skill when touching legacy context in class or function components because provider and every consumer must be updated together to avoid React 18 warnings and React 19 runtime failures.

paulasilvatech 9b0def2 4 files · 19.2 KB Updated

File contents

paulasilvatech/awesome-harness-primitives/tree/main/harness/github-copilot/skills/react18-legacy-context commit 9b0def232f

Frequently asked questions

npx skillmds@latest add paulasilvatech/react18-legacy-context-2