Question Bank

3705 approved questions from the community

Which of the following can be rendered in React 16+? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are recommended practices when using keys? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are benefits of TypeScript with React? (Select all that apply)

HARD
MULTIPLE CHOICE
45s
React
by Mohamed

JSX must be transpiled before browsers can run it.

EASY
TRUE FALSE
20s
React
by Mohamed

Using array indices as keys is always safe, even for reorderable lists.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Hooks can be called inside loops if the loop always has the same length.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

`useRef` updates trigger rerenders by default.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Mutating React state directly is recommended for performance.

EASY
TRUE FALSE
20s
React
by Mohamed

Hydration is attaching React behavior to server-rendered HTML on the client.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

React Strict Mode can intentionally run some logic twice in development.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

A Higher-Order Component takes a component and returns a new component.

EASY
TRUE FALSE
20s
React
by Mohamed

Static generation is ideal for pages that change infrequently.

EASY
TRUE FALSE
20s
React
by Mohamed

Copying props into state without clear need can create anti-patterns.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Virtual DOM is an in-memory representation used to compute efficient real DOM updates.

EASY
TRUE FALSE
20s
React
by Mohamed

Reconciliation is React's diffing process to decide what to update in the UI.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Props can be modified by the child component that receives them.

EASY
TRUE FALSE
20s
React
by Mohamed

React.memo() performs a deep comparison of props by default.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

The children prop can only contain React elements.

EASY
TRUE FALSE
20s
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

React automatically binds event handlers in class components.

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