DIGIT Frontend React 19 Upgrade
Overview
Upgrade Summary Table
Library/Tool
Before
After
Migration Summary
What Changed
Build System Migration
From microbundle-crl to Webpack 5
React 17 to React 19 Migration
Breaking Changes
1. Rendering API (Critical)
2. forwardRef Removal
3. Context Provider Syntax
4. defaultProps Removed
5. Automatic Batching
6. New Hooks in React 19
React Router v5 to v6 Migration
Major Syntax Changes
1. Switch → Routes
2. useHistory → useNavigate
3. Redirect → Navigate
4. Route Props → Hooks
5. Nested Routes
6. NavLink Changes
Quick Reference Table
v5
v6
React Query to TanStack Query v5 Migration
Package Change
Import Changes
1. useQuery Signature Change
2. useMutation Signature Change
3. Status Flags Renamed
4. Query Invalidation
Quick Reference Table
v3
v5
Other Library Updates
React Hook Form (v6 → v7)
React i18next (v11 → v15)
React Redux (v7 → v9)
Challenges Faced
1. Peer Dependency Conflicts
2. Build System Complexity
3. React Router Complete Rewrite
4. React Query Breaking Changes
5. forwardRef Throughout Codebase
6. Automatic Batching Side Effects
Troubleshooting Guide
Error: "ReactDOM.render is no longer supported"
Error: "useHistory is not exported"
Error: "Switch is not exported"
Error: "useQuery expects object"
Error: "isLoading is undefined"
Peer Dependency Warnings
Webpack Build Fails
Upgrade Roadmap
References
Last updated
Was this helpful?