What is React Strict Mode?
Strict Mode enables development-only checks that help reveal unsafe patterns and side effects.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3121–3132 of 3610 questions
Strict Mode enables development-only checks that help reveal unsafe patterns and side effects.
Both describe object shapes; interfaces support declaration merging, while type aliases can express unions, intersections, and other type expressio...
A custom hook is a function starting with use that composes hooks to share stateful logic between components.
React schedules rendering after relevant updates, reconciles the new element tree, and commits necessary changes to the host environment.
Rendering calculates the next UI; committing applies required changes to the host environment such as the DOM.
Call hooks only at the top level of function components or custom hooks, never conditionally or inside loops.
It tells React which reactive values an effect uses to determine when to re-synchronize.
Cleanup releases external resources such as subscriptions, timers, listeners, or in-flight work.
Cancel obsolete requests with AbortController or track request identity so only the latest relevant response updates state.
useMemo caches a calculated value between renders until dependencies change, potentially avoiding expensive recalculation.
useCallback caches a function definition until its dependencies change.
React.memo can skip rendering a component when its props are unchanged according to its comparison behavior.