Quick recall mode

Keywords first, details second.

Use this mode when you want memory triggers only: title, summary, tags, and bullet anchors without long answers getting in the way.

Clear

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

Quick recall

374 cards

React Medium Theory

Common React pitfalls

Many React bugs come from mutable state, wrong keys, bad effect dependencies, overused context, and mixing too much logic into UI components.

  • Do not mutate state directly
  • Missing dependencies cause subtle bugs
  • Too much state or context makes components harder to reason about
React Hard Theory

Data fetching in React: useEffect, loading and error states, cleanup, race conditions, AbortController, React Query, SWR, and server vs client state

React data fetching is about both getting data and managing cache, loading, error, cancellation, and freshness correctly.

  • Server state behaves differently from local UI state
  • Race conditions happen when requests overlap
  • Libraries like TanStack Query and SWR help with caching and synchronization