Question Bank
246 approved questions from the community
Why might SSR improve perceived performance?
For async fetching in React, what helps avoid stale response bugs?
What does one-way data flow in React imply?
A Higher-Order Component takes a component and returns a new component.
A scalable way to reduce context-triggered rerenders is to:
What is code splitting mainly intended to improve?
React Strict Mode can intentionally run some logic twice in development.
React Portals are most useful when you need to:
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?
Mutating React state directly is recommended for performance.
What is the main use of `forwardRef`?
React Fragments let you return multiple children without adding extra DOM wrappers.
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.