0
When we build a SPA in React, the code is all in memory, all parts of the application are in a single file.
How can I split my SPA to be loaded as the user uses the features, for example: load the dependencies, functions of a page only when it opens.
In Angular which is a
framework
has a technique calledlazy loading
, that is incorporated in a very simple way in the modules of the components, this, makes that only be loaded that module if the user access it (on demand). Because React is only a Javascript library, I don’t know if it has such Feature or needs external features to do the same!– LeAndrade