Question Bank

3705 approved questions from the community

What is the purpose of React.StrictMode?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What does the useId hook do?

EASY
SINGLE CHOICE
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

useState can accept a function as its initial value for lazy initialization.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

useLayoutEffect can cause layout thrashing if used improperly.

HARD
TRUE FALSE
30s
React
by Mohamed

What is a wrapper component in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

Can you use multiple contexts in one component?

EASY
SINGLE CHOICE
25s
React
by Mohamed

How can you prevent infinite loops with useEffect?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What happens if you return a Promise from useEffect?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What does capture phase mean in React events?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

Which array methods should you prefer for updating state arrays? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
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 is the Immer library commonly used for in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the purpose of flushSync in React 18?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What are React Server Components?

MEDIUM
SINGLE CHOICE
40s
React
by Mohamed

What is the recommended way to handle forms in React?

EASY
SINGLE CHOICE
30s
React
by Mohamed

What is the purpose of the useInsertionEffect hook?

MEDIUM
SINGLE CHOICE
40s
React
by Mohamed

What is the purpose of useSyncExternalStore?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is React hydration?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed
PreviousPage 113 of 186Next