Home > Enterprise >  How can we do dynamic imports of Npm modules in React?
How can we do dynamic imports of Npm modules in React?

Time:05-06

I have seen the webpack enter image description here

CodePudding user response:

the NPM package imports follow it is component, so if we dynamically imported the component that means we dynamically imported the Package, since the import does not get called until it is component gets called

For further information about code splitting read this article it goes throw all the techniques you can use to achieve code splitting

Edit eloquent-forest-bxgrvu

  • Related