A practical migration guide covering Server Components, Actions, and the new hooks in React 19.
React 19 introduced several significant changes. Server Components are now stable, Actions simplify form handling, and new hooks like useFormStatus and useOptimistic streamline common patterns.
The migration path depends on your current setup. If you are already using Next.js App Router, you are likely using Server Components already. The main changes are in how you handle forms and state updates.
Actions replace the pattern of creating API endpoints for form submissions. Instead of POST requests to an API route, you write server functions that run on the server and can be called directly from client components.
The useSyncExternalStore hook becomes more important with the new set-state-in-effect lint rule. If you were using useState with useEffect to sync external state, refactor to useSyncExternalStore to avoid the warning.



