Question Bank
133 approved questions from the community
React Strict Mode can intentionally run some logic twice in development.
Hydration is attaching React behavior to server-rendered HTML on the client.
Which testing style is most aligned with modern React guidance?
What do Error Boundaries catch?
What is the main use of `forwardRef`?
What is `useMemo` mainly for?
Which scenario is best for `useCallback`?
`useRef` updates trigger rerenders by default.
What is a key timing difference between `useEffect` and `useLayoutEffect`?
What does an empty dependency array in `useEffect` mean?
Hooks can be called inside loops if the loop always has the same length.
When should you prefer `useReducer` over `useState`?
Using array indices as keys is always safe, even for reorderable lists.