← React Intermediate Questions - Set 8 Q74
What is `React.memo` and how does it work?
React Intermediate Questions - Set 8
Example
1
2
3
const Row = memo(function Row({ item }) {
return <li>{item.label}</li>;
});
What to notice
- Shallow props comparison before rendering; pair with `useCallback` for handlers.
← Back to the question list