Put in order · JavaScript and React course · Module 8: Advanced React Patterns
Benefits of Code Splitting
Arrange the steps for implementing code splitting in a React application:
Items to put in order
- Add an Error Boundary in case of a loading error
- Use React.lazy() for dynamic import
- Test lazy loading in the browser
- Identify large modules to split
- Wrap it in Suspense with a fallback UI
You can check the correct answer by solving this task in the CodeWorlds game.