react-modernization

Upgrade React applications and migrate class components to Hooks.

2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/as4584/antigravity-skills --skill react-modernization-as4584
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-modernization
Source: https://github.com/as4584/antigravity-skills/tree/main/agents-wshobson/plugins/framework-migration/skills/react-modernization
Command: npx skills add https://github.com/as4584/antigravity-skills --skill react-modernization-as4584

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of upgrading React applications, migrating complex class components to modern functional components with Hooks, and adopting new concurrent features for improved performance and user experience.

Core Features & Use Cases

  • Version Upgrades: Guides through React 16, 17, and 18 version changes, including breaking updates and new APIs.
  • Class to Hooks Migration: Provides clear examples and strategies for converting state management, lifecycle methods, and context/HOC patterns to Hooks.
  • Concurrent Features: Explains and demonstrates the use of React 18's automatic batching, transitions, and Suspense for data fetching.
  • Codemod Automation: Offers guidance on using jscodeshift and specific codemods for automated refactoring.
  • TypeScript Adoption: Shows how to migrate JavaScript components to TypeScript with proper typing.
  • Use Case: You have a large React codebase with many class components and are looking to upgrade to React 18. This skill will help you systematically migrate components to hooks and leverage new features like concurrent rendering.

Quick Start

Use the react-modernization skill to upgrade a React application from version 17 to 18, focusing on adopting the new root API and automatic batching.

Frequently Asked Questions about react-modernization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate React class components to functional components with Hooks?

Migrating React class components to functional components with Hooks involves converting state management and lifecycle methods to useState and useEffect. This skill provides strategies for refactoring context and HOC patterns into custom Hooks.

What is the best way to upgrade a React 17 application to React 18?

Upgrading a React 17 application to React 18 involves adopting the new root API and automatic batching. This skill guides you through breaking changes, concurrent features like transitions, and leveraging Suspense for data fetching.

Can I automate React refactoring using codemods?

Automating React refactoring using codemods is supported through guidance on jscodeshift. This skill explains how to apply specific codemods to systematically upgrade versions and migrate complex class structures.

How do I migrate JavaScript React components to TypeScript?

Migrating JavaScript React components to TypeScript involves applying proper typing to functional components and Hooks. This skill demonstrates how to adopt TypeScript integration while modernizing your React codebase.

Does this React modernization process handle performance optimization?

React modernization handles performance optimization by integrating React 18 concurrent features. This includes utilizing automatic batching, transitions, and Suspense to improve application rendering and user experience.