How to load an application dynamically with React

Asked

Viewed 15 times

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 called lazy 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!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.