Refactoring react-based Web apps

Fabio Ferreira,Hudson Silva Borges,Marco Tulio Valente
DOI: https://doi.org/10.1016/j.jss.2024.112105
IF: 3.5
2024-05-24
Journal of Systems and Software
Abstract:Refactoring is a well-known technique to improve software quality. However, there are relevant domains where refactoring has not been studied in-depth before, such as JavaScript front-end frameworks. To fill this gap, we empirically study refactorings that developers perform when maintaining and evolving React -based Web applications. By manually inspecting 320 refactoring commits performed in open source projects, we catalog 69 distinct refactoring operations of which 25 are specific to React code, 17 are adaptations of traditional refactorings for the React context, 22 are traditional refactorings, and six are specific to JavaScript and CSS code. The catalog of refactorings proposed in this article might support practitioners when improving the maintainability of React applications. Editor's note: Open Science material was validated by the Journal of Systems and Software Open Science Board .
computer science, theory & methods, software engineering
What problem does this paper attempt to address?