What are some of the best practices to lazy load your ReactJS components? How do you do it? Do you use any supporting libraries?
you can send request in component did mount some data and get answer from server where you want to sure about Authentication
Philip Davis
Software developer
You can use Webpack's require.ensure() to create separate bundles. Reference
The ideal place to use require.ensure() is in your router component so you can create a bundle per functional area. You can also create a bundle of shared components via CommonsChunkPlugin.