deepskill授权
React 旧版 Context 迁移
提供从 React 旧版 Context API(contextTypes、childContextTypes、getChildContext)迁移到现代 createContext API 的完整模式。当迁移类组件中的旧版 Context 时使用;这始终是跨文件迁移,需要同时更新提供者与全部消费者。在修改任何 contextTypes 或 childCon
↓ 0👍 0
◇ 来源证据已核对↗
从你要完成的任务出发,发现 Agent 技能。查看原始来源、了解使用说明,再选择下一步。
提供从 React 旧版 Context API(contextTypes、childContextTypes、getChildContext)迁移到现代 createContext API 的完整模式。当迁移类组件中的旧版 Context 时使用;这始终是跨文件迁移,需要同时更新提供者与全部消费者。在修改任何 contextTypes 或 childCon