- We can load the component dynamically to imporve performance.
- This helps reduce the bundle size.
- It delay load component which are not used during the initial render.
const Home = React.lazy(() => import('./Home'));
const About = React.lazy(() => import('./About'));
const Contact = React.lazy(() => import('./Contact'));