Behind the Scenes of React and Optimization Opportunities
Learning Objectives
By the end of this chapter, you will be able to do the following:
- Avoid unnecessary code execution via the
useMemo()
anduseCallback()
Hooks - Load optional code lazily, only when it’s needed, via React’s
lazy()
function - Use React’s developer tools to analyze and optimize your app
- Explore the React Compiler for automatic performance improvements