技能 编程开发 React应用现代化指南

React应用现代化指南

v20260509
react-modernization
本技能专注于指导React应用的现代化改造。它涵盖了从类组件迁移到Hooks、升级React版本、采纳并发特性(如Suspense)以及使用Codemods进行自动化重构。适用于需要将老旧或低效的React代码库升级为高性能、现代架构的场景。
获取技能
263 次下载
概览

React Modernization

Master React version upgrades, class to hooks migration, concurrent features adoption, and codemods for automated transformation.

Use this skill when

  • Upgrading React applications to latest versions
  • Migrating class components to functional components with hooks
  • Adopting concurrent React features (Suspense, transitions)
  • Applying codemods for automated refactoring
  • Modernizing state management patterns
  • Updating to TypeScript
  • Improving performance with React 18+ features

Do not use this skill when

  • The task is unrelated to react modernization
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
信息
Category 编程开发
Name react-modernization
版本 v20260509
大小 5KB
更新时间 2026-05-10
语言