Impact of State Management Using the Context API in Single Page Applications

Authors

DOI:

https://doi.org/10.5753/reic.2026.7413

Keywords:

State Management, Web Development, Single Page Applications (SPAs), Context API

Abstract

This article presents a study aimed at identifying the impact of state management using the Context API tool on Single Page Applications (SPAs). The research was conducted using the React framework and the TypeScript programming language, comparing script loading times between approaches with and without the use of the Context API. Experiments were performed in two componentization scenarios: flat, with components organized in a single hierarchical level, and deep, with five levels of nested components. In the flat componentization tests, differences in loading times between the approaches were minimal, with statistically significant variations observed only at intermediate loads. In contrast, results from the deep componentization scenarios indicated consistently lower loading times with the use of the Context API. Statistical analysis, conducted through the Wilcoxon test, reinforced these results. Thus, it is concluded that under certain conditions, especially in applications with greater structural depth, the use of the Context API may be associated with more efficient performance behavior, as represented by interface loading times.

Downloads

Download data is not yet available.

References

Alkhateeb, B. (2024). Understanding state management: A comprehensive guide. Disponível em: [link]. Acesso em: 8 nov. 2024.

Arapakis, I., Park, S., and Pielot, M. (2021). Impact of response latency on user behaviour in mobile web search. Disponível em: [link]. Acesso em: 8 nov. 2024.

Awari (2023). Gerenciamento de estado no front-end: tudo o que você precisa saber. Disponível em: [link]. Acesso em: 16 out. 2024.

Borzemski, L. and Kędras, M. (2019). Information systems architecture and technology. In Proceedings of 40th Anniversary International Conference on Information Systems Architecture and Technology – ISAT 2019, pages 285–301. Springer. DOI: 10.1007/978-3-030-30440-9_27.

Creswell, J. W. (2009). Research design: qualitative, quantitative, and mixed methods approaches. SAGE Publications, Thousand Oaks, CA, 3 edition.

Devographics (2023). State of javascript 2023: Front-end frameworks. Disponível em: [link]. Acesso em: 10 nov. 2024.

Droń, M. and Szandała, T. (2026). Web application state management: A review of leading react frameworks. IEEE Software. DOI: 10.1109/MS.2025.3621269.

Enghardt, T., Zinner, T., and Feldmann, A. (2019). Passive and active measurement. In PAM 2019, pages 286–303. Springer. DOI: 10.1007/978-3-030-15986-3_19.

Flovén, K. F. (2020). State management models impact on run-time performance in single page applications. Disponível em: [link]. Acesso em: 18 set. 2024.

Google (2016). The need for mobile speed. Disponível em: [link]. Acesso em: 16 out. 2024.

Google (2023). Why does speed matter? Disponível em: [link]. Acesso em: 24 set. 2024.

Jadhav, M. A., Sawant, B. R., and Deshmukh, A. (2015). Single page application using angularjs. International Journal of Computer Science and Information Technologies. Disponível em: [link]. Acesso em: 16 out. 2024.

Le, T. (2021). Comparison of state management solutions between context api and redux hook in reactjs. Disponível em: [link]. Acesso em: 18 set. 2024.

Siegel, S. and Castellan, N. J. (2006). Estatística não-paramétrica para ciências do comportamento. Artmed, Porto Alegre, 2 edition.

Techtarget (2024). What is state management? Disponível em: [link]. Acesso em: 24 set. 2024.

We Are Social and Hootsuite (2023). Digital 2023: Global overview report. Disponível em: [link]. Acesso em: 7 set. 2024.

Published

2026-04-11

How to Cite

Comin, V. G., & André, L. (2026). Impact of State Management Using the Context API in Single Page Applications. Electronic Journal of Undergraduate Research on Computing, 24(1), 230–236. https://doi.org/10.5753/reic.2026.7413

Issue

Section

Full Papers