We are using react-router. Here router base code split. all components are fetching asynchronous.
- Node.js v6.9+
- Yarn or npm client
git clone https://github.com/hari-mohan-choudhary/react-code-split.git
cd react-code-split
yarn
yarn start
yarn build
and install chrome in https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?utm_source=chrome-ntp-icon and then add folder build.