React 18 Upgrade Plugin
Enterprise React 18 migration toolkit with specialized agents and skills for upgrading React 16/17 class-component codebases to React 18.3.1. Includes auditor, dependency surgeon, class component migration specialist, automatic batching fixer, and test guardian.
At a glance
- Kind
- Plugin · Ananke
bundle - Reference
awesome-copilot/react18-upgrade·ananke://bundle/awesome-copilot/react18-upgrade@1.0.0- Files
- 2 · 5.2 KB
- How it's used
- Installing a plugin installs every bundled skill and agent listed below.
Where it fits
- Task
- Refactor or modernise
- Lifecycle phase
- TestingVerification
- Role
- QA engineer
- Domain
- Front end
- Framework or tool
- React
- Platform
- Ananke PlexusClaude CodeGitHub Copilot
- Needs
- Nothing (text only)
Facets suggested from the item's own text and tags, not yet reviewed. Facets say where an item is relevant, not that it will run in your setup. How facets work
Checked by Dex
Verified, not self-reported: dex-trove 0.3.16 installed this item into each layout and checked that the tool can load it. Dex collects no download or usage data.
- Claude Code ✓ loads
- GitHub Copilot ✓ loads
Bundled items (13)
- Skill React Audit Grep Patternsawesome-copilot/react-audit-grep-patterns
- Skill React 18 Automatic Batching Patternsawesome-copilot/react18-batching-patterns
- Skill React Dependency Compatibility Matrixawesome-copilot/react18-dep-compatibility
- Skill React 18 Enzyme → RTL Migrationawesome-copilot/react18-enzyme-to-rtl
- Skill React 18 Legacy Context Migrationawesome-copilot/react18-legacy-context
- Skill React 18 Lifecycle Patternsawesome-copilot/react18-lifecycle-patterns
- Skill React 18 String Refs Migrationawesome-copilot/react18-string-refs
- Agent react18-auditorawesome-copilot/react18-auditor
- Agent react18-batching-fixerawesome-copilot/react18-batching-fixer
- Agent react18-class-surgeonawesome-copilot/react18-class-surgeon
- Agent react18-commanderawesome-copilot/react18-commander
- Agent react18-dep-surgeonawesome-copilot/react18-dep-surgeon
- Agent react18-test-guardianawesome-copilot/react18-test-guardian
Documentation
View upstream ↗Enterprise toolkit for migrating React 16/17 class-component codebases to React 18.3.1. Includes six specialized agents and seven skills targeting the specific challenges of upgrading legacy class-heavy applications.
Installation
copilot plugin install react18-upgrade@awesome-copilot
What’s Included
Agents
-
react18-commander - Master orchestrator that coordinates the entire migration pipeline through audit, dependencies, class-component surgery, automatic batching fixes, and test verification phases.
-
react18-auditor - Deep-scan specialist that identifies every React 18 breaking change: unsafe lifecycle methods, legacy context, string refs, batching vulnerabilities, and all deprecation patterns.
-
react18-dep-surgeon - Dependency upgrade specialist that pins react@18.3.1 exactly, upgrades testing-library to v14+, resolves all peer conflicts, and returns GO/NO-GO confirmation.
-
react18-class-surgeon - Lifecycle and API migration specialist that performs semantic migrations for:
componentWillMount→componentDidMountor constructorcomponentWillReceiveProps→getDerivedStateFromPropsorcomponentDidUpdatecomponentWillUpdate→getSnapshotBeforeUpdateorcomponentDidUpdate- Legacy Context →
createContext - String refs →
React.createRef() findDOMNode→ direct refsReactDOM.render→createRoot
-
react18-batching-fixer - Automatic batching regression specialist that identifies and fixes the #1 silent runtime breaker in React 18: setState calls in async methods that relied on immediate intermediate re-renders.
-
react18-test-guardian - Test suite fixer that handles Enzyme-to-RTL rewrites, RTL v14 API updates, automatic batching test regressions, StrictMode double-invoke changes, and runs tests until zero failures.
Skills
-
react-audit-grep-patterns - Reference grep patterns for auditing React 18 deprecations across class components.
-
react18-batching-patterns - Patterns and strategies for identifying and fixing automatic batching regressions.
-
react18-dep-compatibility - Dependency compatibility matrix for React 18 with migration paths for testing-library, Apollo, Emotion, react-router.
-
react18-enzyme-to-rtl - Complete guide for rewriting Enzyme tests to React Testing Library (RTL v14+).
-
react18-legacy-context - Migration patterns for legacy context API →
createContext. -
react18-lifecycle-patterns - Detailed migration patterns for all three unsafe lifecycle methods.
-
react18-string-refs - Reference implementations for migrating string refs to
React.createRef().
Quick Start
Ask: "Start implementing React 18 migration for my class-component codebase"
The react18-commander will guide you through:
- Audit → identify all breaking changes
- Deps → upgrade to react@18.3.1 + compatible libraries
- Class Surgery → migrate lifecycle methods and APIs
- Batching Fixes → fix automatic batching regressions
- Tests → migrate test suite and run to green
Why React 18.3.1?
React 18.3.1 was released to surface explicit warnings for every API that React 19 will remove. A clean 18.3.1 run with zero warnings is the direct prerequisite for the React 19 migration.
Key Features
- ✅ Targets class-component-heavy codebases (NOT just functional component patterns)
- ✅ Automatic batching issue detection and
flushSyncrecommendations - ✅ Enzyme test detection with full RTL rewrite capability
- ✅ Memory-based resumable pipeline - survive interruptions
- ✅ Zero tolerance for incomplete migrations - run to full success
- ✅ StrictMode-aware test fixes
- ✅ Apollo Client, Emotion, react-router compatibility handling
Source
This plugin is part of Awesome Copilot.
License
MIT