Metraipolis › archive › dc_1593411f2550
Refactoring React Component Hierarchies to Eliminate Prop Drilling — arXiv:2610.01376
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.01376
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-06T15:17:05.445Z
- SHA-256 of the archived text
d20a14cda6c775a63db621a88a43cbedc4c90c6839857330b8fe53881b8fb2a8- Stable URL of this page
https://metraipolis.com/documento/dc_1593411f2550
How to cite
Refactoring React Component Hierarchies to Eliminate Prop Drilling — arXiv:2610.01376 — arXiv (en), https://arxiv.org/abs/2610.01376 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1593411f2550 (Metraipolis archive dc_1593411f2550, sha256 d20a14cda6c775a63db621a88a43cbedc4c90c6839857330b8fe53881b8fb2a8)
BibTeX
@misc{dc1593411f2550,
title = {Refactoring React Component Hierarchies to Eliminate Prop Drilling — arXiv:2610.01376},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.01376},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1593411f2550; sha256 d20a14cda6c775a63db621a88a43cbedc4c90c6839857330b8fe53881b8fb2a8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.01376. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In React front-end development, Prop Drilling is the practice of propagating data through component properties across multiple levels of the component hierarchy. Despite being discouraged by React documentation and characterized as a code smell by recent research, little is known about its prevalence, complexity, and potential for automated refactoring. In this work, we propose a static analysis method for identifying Prop Drilling instances in a React codebase and eliminating them using two automated refactoring strategies based on Context API and Component Composition. The proposed method is implemented as a this http URL command line tool, ReactRefactor, and empirically evaluated on a benchmark dataset of open-source React applications. The main findings of the empirical evaluation indicate (a) the frequent occurrence of prop drillings across benchmark projects, irrespective of project size; (b) their generally low to moderate complexity in terms of data propagation depth, contrasted with the more prevalent complexity arising from the simultaneous forwarding of multiple properties along the same path; and, (c) the potential for automated elimination of a substantial share (76.3%) of prop drillings, primarily through refactoring to the Context API. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-10-02 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.01376 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-06T15:11:52.288Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-10-02?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).