Modernize a large frontend without a rewrite: the strangler fig pattern, routing traffic between old and new, codemods for mechanical changes, measuring migration progress, and making the case for tech debt work.
Every large frontend eventually needs a major change: AngularJS to React, class components to hooks, Redux to server state, Pages Router to App Router, webpack to Vite. The tempting plan is a rewrite: freeze the old app, build the new one, switch over.
Rewrites fail for well-understood reasons:
Joel Spolsky called the rewrite "the single worst strategic mistake that any software company can make", after Netscape's. The alternative is incremental migration: old and new run side by side, and traffic and code move over piece by piece, each step shippable and reversible.