React v16.6.0 added two really interesting features: React.lazy and the Suspense component.
With their powers combined they let you create easy and powerful code-split applications, with a UX that will leave all your users begging you to code split more of your application!
This video explains
- Why you should care about code-splitting
- What the async import() function is
- How to use React.lazy and Suspense
- LIVE CODING
Have a watch!