Question Bank

3705 approved questions from the community

React components must return a single root element.

EASY
TRUE FALSE
20s
React
by Mohamed

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

HARD
SINGLE CHOICE
45s
React
by Mohamed

Which hook would you use to perform side effects in a function component?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What is the correct way to update state based on the previous state value?

MEDIUM
SINGLE CHOICE
35s
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

The useCallback hook memoizes the result of a function, while useMemo memoizes a function itself.

MEDIUM
TRUE FALSE
30s
React
by Mohamed

React can only be used for building web applications.

EASY
TRUE FALSE
20s
React
by Mohamed

Context API completely replaces the need for state management libraries like Redux.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Synthetic events in React are cross-browser wrappers around native browser events.

EASY
TRUE FALSE
20s
React
by Mohamed

React.lazy only supports default exports for lazy-loaded components.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

PropTypes are used for type-checking props at runtime in development mode.

EASY
TRUE FALSE
20s
React
by Mohamed

What is prop drilling in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the correct way to import React in a modern React application?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What problem does React Concurrent Mode primarily solve?

HARD
SINGLE CHOICE
45s
React
by Mohamed

shouldComponentUpdate is called before every re-render in class components.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React supports all HTML attributes including custom data attributes.

EASY
TRUE FALSE
20s
React
by Mohamed

Default props values are applied when a prop is explicitly passed as undefined.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React DevTools can be used to inspect component props and state in production builds.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Component names in React must start with a capital letter.

EASY
TRUE FALSE
20s
React
by Mohamed

Keys in React must be globally unique across the entire application.

MEDIUM
TRUE FALSE
25s
React
by Mohamed
PreviousPage 117 of 186Next