Lazy loading in React

In this post, I will try to explain the advantages of lazy loading and how to implement it in React. Lazy loading is not a new concept. It has been available for quite some time. In essence, lazy loading means that a component or a part of code must get loaded when it is required. It is also referred to as code splitting and data fetching.