React js - Code Splitting Tutorial (Performance boosting)

preview_player
Показать описание
Learn how to improve the performance of your React App by loading components on demand and splitting your js bundle using suspense and lazy imports.
Рекомендации по теме
Комментарии
Автор

A couple questions:
1) I'm getting an unnumbered bundle that's much larger than anything else... I think it might be the entire app. The webpack log in the terminal calls it "main." I notice in yours you also have a "main.chunk.js" that's much larger than everything else (although everything in yours is quite small, but relatively)... what's the deal with that?
2) I know you can also code split using webpack without using lazy/Suspense at all. What are the advantages/disadvantages of doing it that way, and how do you choose one way over the other?
Thanks!

Royale