Code Splitting Routes

In this lesson, we'll learn how to split routes to send a large chunk of code in different paths.

We'll cover the following

Code splitting advocates that instead of sending this large chunk of code to the user at once, you may dynamically send chunks to the user whenever they actually need them.

We have looked at component-based code splitting in the earlier examples, but another common approach is route-based code splitting.

In this method, the code is split into chunks based on their routes in the application.

Get hands-on with 1200+ tech skills courses.