React TL;DR – a human filter for most useful tech content.

All posts

Oh! the Suspense!

  • React.Suspense is a component that let you suspend, or delay, the component rendering if the components, or soon data, are imported from outside your loaded code.
  • With Code Splitting, you can divide your application code into chunks and reduce the initial loading time of your application by only loading the chunk necessary for the initial render.
  • Suspense handles the loading state and lets you delay the rendering of parts of the application tree.
  • While the chunks are loading suspense shows a fallback component until the chunk is ready to render.