Migrating Legacy Angular JS Applications to React Native: A Case Study
Main Article Content
Abstract
Despite JavaScript libraries and frameworks growing in number over time, it is increasingly difficult for both experienced and inexperienced developers to choose the appropriate one. There is currently no explicit review process for developers to ensure that a framework matches the scope and objectives of their project. In order to help developers choose the best framework for their project depending on their tastes and level of experience, this study looks at the evaluation process. Because component-based React projects and traditional AngularJS apps have distinct ideas, patterns, and structures, the transfer is challenging. This study outlines an easy, affordable, and efficient way to switch from AngularJS to React apps. The research provides a framework with comprehensive instructions for transforming the display layer of any conventional AngularJS application into a component-based React application, while also comparing various approaches. Ng-React Copilot, a migration support tool, was used to teach developers and automate the migration. The tool was created by converting the framework's suggested major refactorings into a collection of detection methods and activating scanning against the specified codebase. The utility works with popular integrated development environments and may be used as a command-line tool. The framework and tool were tested on a subset of small, medium, and enterprise-level AngularJS legacy applications, and the findings demonstrate that the study's conclusions are accurate.