React JS
Everything on SkillVeris tagged React JS — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
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…
Context API vs Redux: When Should You Use Each?
React’s Context API is a built-in mechanism for passing data through the component tree without manual prop drilling, best suited for relatively static or infr…
Controlled vs Uncontrolled Components: What Is the Difference?
A controlled component has its form value driven entirely by React state, with every keystroke updating state via onChange and the state value fed back into th…
How Do You Manage Focus in a Single-Page Application?
Focus management in an SPA means programmatically moving keyboard focus to a sensible element — usually the new view’s heading — after every client-side route…