React Hooks
Everything on SkillVeris tagged React Hooks — collected across the glossary, study notes, blog, and cheat sheets.
7 resources across 1 library
Interview Questions(7)
What Are the Rules of Hooks and Why Do They Exist?
The Rules of Hooks state that hooks must only be called at the top level of a React function component or custom hook, never inside loops, conditions, or neste…
useEffect vs useLayoutEffect: What Is the Difference?
useEffect runs its callback asynchronously after the browser has painted the updated DOM to the screen, while useLayoutEffect runs synchronously after DOM muta…
useMemo vs useCallback: What Is the Difference?
useMemo memoizes the returned value of an expensive computation so it is only recalculated when its dependencies change, while useCallback memoizes the functio…
What Is Prop Drilling and How Do You Avoid It?
Prop drilling is passing a piece of data through several intermediate components via props purely so a deeply nested child can read it, even though those inter…
How Do You Design a Good Custom React Hook?
A well-designed custom hook extracts reusable stateful logic — not UI — behind a function starting with “use”, returning a small, purposeful API (values and fu…
How Do You Implement a Debounced Search Input?
A debounced search input delays firing the search request until the user has stopped typing for a set interval, resetting a timer on every keystroke so only th…
How Do You Implement Infinite Scroll?
Infinite scroll loads additional pages of content automatically as the user nears the bottom of the current list, typically detected with an IntersectionObserv…