...

/

Solution: Optimizing Production Bundle

Solution: Optimizing Production Bundle

Here’s the solution for how to optimize the production bundle by using lazy-loading routes.

We'll cover the following...

Solution

Your task was to add per-route and component lazy-loading. Here are the changes required:

For the src/router/index.js ...