Code-spitting is a feature
supported by bundling tools like web-pack to split the React Application bundle
into multiple bundle files to improve the performance. To understand bundles this
we should first go to the basics of how React applications are bundled and
rendered to the browser.
In the React Environment we see how the React components are compiled and bundled before being rendered to the browser. We use Bable to compile the react Application and web-pack to bundle the compiled JavaScript into a bundle.js file.
In the React Environment we see how the React components are compiled and bundled before being rendered to the browser. We use Bable to compile the react Application and web-pack to bundle the compiled JavaScript into a bundle.js file.