AngularJS to React Migration: A Module-by-Module Guide (2026)
November 24, 2026•4 min read

I hope you enjoy reading this post. If you want us to do your frontend development or design, click here.
Author: Alex Vasylenko | Founder of The Frontend Company
Reviewed by Pavlo Tyshchenko, COO, The Frontend Company


Why migrate off AngularJS, and why now?
- Security. Vulnerabilities reported against AngularJS after 2021 stay open unless you pay a third-party vendor for patches. Enterprise security questionnaires ask about it directly.
- Dependencies. The AngularJS library ecosystem (ui-router, ui-bootstrap, angular-ui-grid and the rest) is frozen. Every other dependency in the build - Node, bundlers, test runners - keeps moving away from it.
- Hiring. Few engineers want to work in AngularJS in 2026, and those who can are expensive because they are rare. React is the most-used web framework in the Stack Overflow 2025 developer survey at 44.7%; hiring for it is a different market.
- Velocity. Two-way binding, $scope digest cycles and jQuery-era DOM manipulation make every change slower and riskier than it should be. The migration is usually the first time the team can touch the UI without fear.
Angular or React: which destination fits your product?
Can AngularJS and React run side by side?
Approach | How it works | Best for | Watch out for |
|---|---|---|---|
Route-level split | Two applications behind one entry point; each route is served by either the AngularJS app or the React app. Shared auth, session and API clients live outside both. | Apps with clear feature areas and a router boundary (most ui-router apps) | Shared layout (navigation, header) has to be rebuilt in React early or duplicated |
Component bridge | React components mounted inside AngularJS templates through a wrapper such as react2angular or ngReact | Apps where whole routes are too big to move at once | Two change-detection systems on one page; both bridge libraries had their last release in 2019 and are effectively unmaintained |
Micro-frontends | A shell (single-spa or a custom orchestrator) loads AngularJS and React bundles as separate applications | Large apps with several teams migrating in parallel | More infrastructure than most products need; only worth it above a certain size |
How does a module-by-module migration work?
- Inventory the app. Every route, controller, directive, service, filter and third-party AngularJS library, with its coupling to the others. This is where the real size of the project appears - not in the line count, but in the number of custom directives that manipulate the DOM and the number of libraries with no React equivalent. A frontend audit produces exactly this before you commit to anything.
- Build the seam. Routing split, a shared auth and session layer, API clients extracted out of AngularJS services into plain TypeScript modules both apps can import, and the shared shell (navigation, layout) rebuilt in React. Nothing user-facing changes yet.
- Pick the first module. Low coupling, moderate size, real user value - a settings area, a reporting screen, a secondary workflow. Not the login page (too much shared state) and not the core workflow (too risky first). Module one exists to prove the seam and the delivery rhythm.
- Rewrite the module in React. TypeScript, function components and hooks, a state model chosen for the module (local state and a server-cache library cover most of it; a global store only where state is truly shared), tests from day one. Business rules and API contracts carry over; $scope, two-way binding and DOM manipulation do not.
- Cut the route over and delete the AngularJS code. Feature flag or straight switch, depending on risk. The deletion matters: a migration where old code stays around just in case is one that never ends.
- Repeat, in order of value and dependency. Each module leaves the seam a little thinner. The last modules are usually the ones everything else depended on - the core workflow and auth - and by then the team has done this a dozen times.
What is hard every time?
- State. AngularJS apps keep state in $scope, $rootScope and services that everything mutates. React needs an explicit state model per module. Most of the design work is here, and it is where a module turns out bigger than its screen suggested.
- Custom directives. Directives that wrap jQuery plugins or manipulate the DOM directly have no React equivalent - they get replaced with a React component and usually a modern library. Count them in the inventory; they are the cost driver.
- Routing. ui-router nested states, resolves and route guards map to a React router, but not one to one. Resolves become data loading in the component or the route loader; guards become auth wrappers. Decide the pattern once, before module one.
- HTTP and auth. $http interceptors that attach tokens and handle 401s are easy to miss and painful to miss. Extract them into the shared client in step two.
- Tests and build. Karma, Jasmine, Protractor, Grunt or Gulp, Bower - the AngularJS toolchain goes; Vite or Next.js, Jest or Vitest, Testing Library and Playwright come in. Keep the old end-to-end tests running against the old routes until each route is gone; they are the regression suite you already paid for.
- Internationalisation and forms. angular-translate and AngularJS form validation have React equivalents, but the migration of translation keys and validation rules is tedious, exact work. Budget it.
What drives the cost of an AngularJS to React migration?
- Number of routes and modules, and how coupled they are. Twenty loosely coupled screens cost less than eight that all share one $rootScope.
- Custom directives and third-party AngularJS libraries with no React equivalent - each one is a component to design, not just to rewrite.
- Test coverage. An app with end-to-end tests migrates faster and safer; one without needs a regression suite built first.
- Backend coupling. If the frontend relies on server-rendered fragments or undocumented API behaviour, the migration touches the backend too.
- Whether the UI is being redesigned at the same time. A pixel-for-pixel migration and a redesign-plus-migration are different projects; combining them is sometimes right and always more expensive.
Want the inventory before the decision?
Where The Frontend Company fits

Unlock the full potential of your product
Boost customer retention & satisfaction
Become more competitive on the market
Move to the latest technologies stacks
Improve usability & visual appeal
FAQ

Alex Vasylenko is the founder of The Frontend Company, DBC and several other successful startups. A dynamic tech entrepreneur, he began his career as a frontend developer at Deloitte and Scandinavia's largest banking company. In 2023, Alex was honored as one of 'Top 10 Emerging Entrepreneurs' by USA Today.

REVIEWED BY
COO, The Frontend Company
Pavlo runs operations and delivery at The Frontend Company and builds its internal AI systems - agent workflows, automation, and the engineering side of software compliance.





