Logo Awesome React

Awesome React

Use React.lazy and Suspense to Code-Split Your App

  • Details
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!

SOURCE CODE
https://codesandbox.io/s/21vrnxyy3j

---

HOMEPAGE
https://hswolff.com/

TWITTER
https://twitter.com/hswolff

YOUTUBE
https://youtube.com/hswolff