Play Button Pause Button

React.lazy API in 60 seconds (Code-Splitting with Suspense)

siddharthkp profile image Sid ・1 min read


Editor guide

Can this be used for static sites such as Gatsby? Because I just tried with Gatsby and I'm getting build errors.


I'm not sure

If you're performing server side rendering with Gatsby, then this wouldn't work (SSR isn't supported yet)

If not, make sure you're on the latest React version


I don't have SSR. Yes. I do have the react latest.
Can't seems to be working. anyway Thanks for the clear introduction :)


Straight to the point, no boring bla-bla.


You lied! It was 56 second video 😉

That was a great intro to code-splitting with suspense.


Awesome! But how is this different from Loadable library? Am I missing anything?


Compared to loadable

Pro: Comes built-in, nicer API
Con: No SSR support yet.



It's great! We need more 1-minute educational resources!


Concise and on point, very nice !


Thank you for keeping it to the point, most tutorials you need to skip ahead ten minutes in to understand.