Question · JavaScript and React course · Module 8: Advanced React Patterns
React.memo for Optimization
What does React.memo() do and when should you use it?
Answer options
- Prevents re-rendering a component when its props haven't changed
- Automatically splits a component into smaller parts
- Caches API call results inside the component
- Converts a class component into a functional one
You can check the correct answer by solving this task in the CodeWorlds game.