MediumTechnical
2
198
Explain React useCallback vs useMemo
What are the differences between useCallback and useMemo hooks in React? When would you use one over the other? Provide examples.
Meta
Frontend Engineer
React-specific interview questions on hooks, state management, component patterns, performance optimization, and React ecosystem.
4
Questions in database
What are the differences between useCallback and useMemo hooks in React? When would you use one over the other? Provide examples.
Explain the concept of virtual DOM in React. How does it improve performance compared to direct DOM manipulation?
Build an infinite scroll component in React that efficiently loads and displays large lists of items. Consider virtualization.
Explain the rules of hooks in React. Why can't we call hooks inside loops, conditions, or nested functions?