Tag view

#hooks

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with hooks

10 cards

React Hard Theory

useLayoutEffect, forwardRef, useImperativeHandle, useTransition, useDeferredValue, and useId

These hooks and helpers solve timing, refs, deferred rendering, and stable identity concerns that basic hooks do not cover.

  • useLayoutEffect runs earlier than useEffect
  • forwardRef exposes refs across component boundaries
  • Transition hooks help prioritize urgent updates

useLayoutEffect, forwardRef, useImperativeHandle, useTransition, useDeferredValue, and useId

React Easy Theory

useRef, refs vs state, and DOM access in React

useRef holds mutable values that do not trigger re-renders and is commonly used for DOM access or persistent instance-like values.

  • Refs do not cause re-renders
  • Useful for DOM nodes and mutable escape hatches
  • State should drive visible UI

useRef, refs vs state, and DOM access in React