What problem does it solve? Legacy React codebases built on class components, outdated lifecycle methods, and older React versions are hard to maintain and miss out on modern performance features. This Skill provides structured guidance, code patterns, and codemod commands to upgrade React versions and modernize component architecture. ## Core Features & Use Cases - Class to Hooks Migration: Convert class components, lifecycle methods, context consumers, and HOCs into functional components with useState, useEffect, useContext, and custom hooks. - React 18 Upgrade Guidance: Adopt the createRoot API, automatic batching, transitions, and Suspense for data fetching with step-by-step breaking change notes. - Automated Codemods: Run jscodeshift and react-codeshift transforms to rename unsafe lifecycles and apply the new JSX transform at scale. - Use Case: You inherit a React 16 application full of class components. Use this Skill to incrementally upgrade to React 18, convert components to hooks, and apply performance optimizations like useMemo and code splitting. ## Quick Start Use the react-modernization skill to migrate my class components in src/ to functional components with hooks and upgrade the app to React 18.