Hello,
Just for further reference, its not that clear whether you are using SPA editor (which essentially is a react app inside AEM) or in a headless fashion.
If it is of SPA editor mode, then it will follow the existing AEM architecture. All the frontend code written in ui.frontend essentially transforms into a client library JS and the JS will invode the cached AEM site hierarchy pages as per the user interaction. Hope that clarifies the questions