Question Bank

721 approved questions from the community

What is the difference between Shadow DOM and Virtual DOM?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the main difference between createElement and cloneElement?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the purpose of getSnapshotBeforeUpdate lifecycle method?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is the diffing algorithm in React?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is render hijacking in React?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the purpose of useSyncExternalStore?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is the purpose of flushSync in React 18?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is the main difference between React Router's Page Router and App Router in Next.js?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What happens if you return a Promise from useEffect?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the main purpose of React Fiber's reconciliation algorithm?

HARD
SINGLE CHOICE
45s
React
by Mohamed

When using React.lazy() for code splitting, what component must wrap the lazy-loaded component?

HARD
SINGLE CHOICE
40s
React
by Mohamed

Custom hooks must follow the same rules as built-in hooks, including starting with 'use' prefix.

HARD
TRUE FALSE
25s
React
by Mohamed

What problem does React Concurrent Mode primarily solve?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is the purpose of getDerivedStateFromProps lifecycle method?

HARD
SINGLE CHOICE
45s
React
by Mohamed

useDeferredValue can help keep the UI responsive during expensive re-renders.

HARD
TRUE FALSE
30s
React
by Mohamed

What is the main difference between useTransition and useDeferredValue?

HARD
SINGLE CHOICE
45s
React
by Mohamed

React can combine multiple useReducer hooks with Context to create a scalable state management solution.

HARD
TRUE FALSE
30s
React
by Mohamed

useLayoutEffect can cause layout thrashing if used improperly.

HARD
TRUE FALSE
30s
React
by Mohamed

Which of the following are valid ways to optimize React performance? (Select all that apply)

HARD
MULTIPLE CHOICE
45s
React
by Mohamed

Which statements about Error Boundaries are correct? (Select all that apply)

HARD
MULTIPLE CHOICE
45s
React
by Mohamed
PreviousPage 26 of 37Next