Closed oneandonlyonebutyou closed 4 years ago
Hey, not sure what you mean - do you mean Webpack tree shaking?
The component I use "react-burger-menu" is getting very big. and based on my understanding, if I lazy load the component, Webpack will break them up to smaller pieces and load them when it is needed. I wonder if it would apply to the case as well.
The component I use "react-burger-menu" is getting very big. and based on my understanding, if I lazy load the component, Webpack will break them up to smaller pieces and load them when it is needed. I wonder if it would apply to the case as well.
This might help you:
import Menu from 'react-burger-menu/lib/menus/push';
The component I use "react-burger-menu" is getting very big. and based on my understanding, if I lazy load the component, Webpack will break them up to smaller pieces and load them when it is needed. I wonder if it would apply to the case as well.
You can use React.lazy or react-loadable for that, I guess
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Base on examples I import :
I wonder how can I do lazy importing to split my code .. Thanks..