Lazy React makes code-splitting easy

Daminda Dinesh Imaduwa Gamage
6 min readJan 27, 2023
Photo by Zhang Kenny on Unsplash

React.lazy and Suspense make React developer life easy. React.lazy helps in code-splitting and Suspense backup React.lazy in loading state. Before, we go into details let’s start things simply. let’s be familiar with some background knowledge.

What is Bundling?

Bundling is the process of putting code in many files into one file. While bundling is essential in…

--

--