In the JavaScript eco-system, there are excellent libraries and framework available on the package manager registry and in day to day life we are importing it into our project.
That's okay when you have just started your project but as soon as your project grows your facing a lot of performance related issues.
In this article, we are going to focusing on common issues like a large bundle size slow startup and resolving it simply implement code splitting in React app.
Bundling codebase is the excellent way until your app is pretty small with limited dependencies.
The perfect solution for handling a large bundle size and slow startup is to implement code splitting in you're app i.e.
import() – dynamically import ES modules