Question · JavaScript and React course · Module 5: useEffect and Custom Hooks
Performance Optimizations
How does React.memo affect component performance?
Answer options
- Compresses the component to a smaller size
- Prevents re-rendering when props have not changed
- Moves rendering to a Web Worker
- Automatically caches API results
You can check the correct answer by solving this task in the CodeWorlds game.