跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

React Modernization

技能 已验证 活跃

Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing React codebases, migrating to React Hooks, or upgrading to latest React versions.

目的

To guide developers through the process of modernizing React codebases, ensuring seamless upgrades, hook adoption, and integration of concurrent features.

功能

  • Upgrade React applications to latest versions
  • Migrate class components to functional components with hooks
  • Adopt concurrent React features (Suspense, transitions)
  • Apply codemods for automated refactoring
  • Provide examples for state management and lifecycle hooks

使用场景

  • Modernizing legacy React codebases
  • Migrating to React Hooks for improved code structure
  • Upgrading to React 18+ to leverage concurrent rendering features
  • Automating refactoring tasks with codemods

非目标

  • Performing the migration automatically without developer oversight
  • Handling non-React JavaScript framework migrations
  • Providing a full-stack development environment

工作流

  1. Review React version upgrade paths and breaking changes
  2. Migrate class component state and lifecycle methods to hooks with provided examples
  3. Implement React 18 concurrent features like new root API, automatic batching, transitions, and Suspense
  4. Utilize provided codemod commands for automated refactoring
  5. Optionally, migrate to TypeScript with examples

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install framework-migration@claude-code-workflows

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交3 days ago
星标35.3k
许可证MIT
状态
查看源代码