You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used the country-state-city npm package in ReactJS to make the country, state, and city dropdowns. But the bundle size is nearly 8.8 MB. How do I reduce the bundle size?
The text was updated successfully, but these errors were encountered:
The size of the package is actually on a very heavy end. I also faced the same issue. They really need to fix this. @mohan2910
As a workaround what you can do is if you are using react, make sure to load this in background so that when you come to this page it already gets cached. Obviously for that you need to implement lazy loading on the page where you are implementing the package.
I have used the country-state-city npm package in ReactJS to make the country, state, and city dropdowns. But the bundle size is nearly 8.8 MB. How do I reduce the bundle size?
The text was updated successfully, but these errors were encountered: