V
V
Vadim Stepanenko2021-02-28 20:45:39
React
Vadim Stepanenko, 2021-02-28 20:45:39

Why doesn't everyone use React.lazy when developing apps?

Hey!
I'm reading the react doc, and I came across code splitting - when the project is compiled into several bundles, which are loaded as needed. That is, if a user on the site goes to the "Tech Support" section, then only the required bundle is loaded (in which the code for the tech support section), and not all at once when the page is loaded.

So, I looked at a lot of react projects on the git, this is not used anywhere.
Actually the question is why? Or maybe I misunderstood the essence of code separation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2021-02-28
@Sanes

Do not want. On VUE, too, no one bothers with similar functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question