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
面向 GitHub Copilot 的迁移与代码演进指令生成器。分析两个项目版本(分支、提交或发布版)的差异,创建精确指令,使 Copilot 在技术迁移、大型重构或框架版本升级期间保持一致性。