Lazy-Loading React Components

Optimize production builds with code splitting

Matt Croak Code
Better Programming
Published in
3 min readNov 5, 2020

--

Yellow and gray diagonal pattern
Photo by Drew Beamer on Unsplash

Code splitting is a very useful tool when it comes to reducing the size of your builds. It allows you to parse (or split) your code into different bundles that can be loaded conditionally based on what is currently needed.

Let’s say you have a suite of e-learning applications for different classes and levels…

--

--