React 18 旧版 Context 迁移
io.github.github/awesome-copilot/react18-legacy-context
提供 React 旧版 Context API(contextTypes、childContextTypes、getChildContext)迁移到现代 createContext API 的完整模式。迁移类组件的旧版 Context 时务必使用——这始终是需要同时更新 provider 和全部消费者的跨文件迁移。改动任何 contextTypes/childContextTypes 代码前先用本技能,因为只改 provider 不改消费者(或反之)会导致运行时报错。编写任何 Context 迁移代码前都应先读本技能,其中的跨文件协调步骤可避免最常见的 Context 迁移错误。