Stores local component state and provides a setter.
Programming flashcards
React Hooks Essentials
Core React hooks and when to use them in modern component code.
#react#hooks#javascript#frontend
Card preview
Runs side effects after render, such as subscriptions or data loading.
Memoizes an expensive computed value between renders.
Memoizes a function reference between renders.
Stores a mutable value that does not trigger re-render when changed.
Manages state with a reducer function for more structured updates.
A reusable function that calls hooks and encapsulates component logic.
A function returned from useEffect to remove listeners, timers, or subscriptions.