1 个仓库
Tools for updating deprecated framework lifecycle hooks to their stable equivalents.
Distinct from Lifecycle Optimization: Focuses on the automated refactoring of lifecycle methods rather than runtime performance optimization.
Explore 1 awesome GitHub repository matching web development · Lifecycle Method Modernizers. Refine with filters or upvote what's useful.
这是一个抽象语法树(AST)转换工具套件,旨在自动化将源代码迁移到较新版本 React 的过程。它提供了一组脚本,以编程方式修改代码结构,用现代等效项替换已弃用的 API 和组件模式。 该工具包专门用于使用箭头函数和属性解构将类组件转换为函数组件。它还包括用于现代化 JSX 语法、将已弃用的生命周期方法更新为稳定版本以及将遗留的基于字符串的引用迁移到回调引用的实用程序。 其他功能涵盖了导入模式的优化、冗余导入的删除以及包引用和模块路径的更新。该项目使用规则驱动的源代码迁移和模式匹配语法分析,以确保转换在大型代码库中保持一致。
Updates deprecated or experimental lifecycle methods to their stable equivalents to ensure framework compatibility.