Question Bank

3705 approved questions from the community

What is the purpose of the key attribute in React lists?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the primary difference between controlled and uncontrolled components?

HARD
SINGLE CHOICE
40s
React
by Mohamed

Which method is used to create a context in React?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What happens if you omit the dependency array in useEffect?

MEDIUM
SINGLE CHOICE
30s
React
by Mohamed

What happens when you call setState() multiple times in the same synchronous code block?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the primary purpose of React.createElement()?

MEDIUM
SINGLE CHOICE
30s
React
by Mohamed

After calling a `useState` setter, what should you expect?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

React Suspense is mainly used to:

HARD
SINGLE CHOICE
40s
React
by Mohamed

What did React Fiber primarily unlock?

HARD
SINGLE CHOICE
45s
React
by Mohamed

React composition encourages developers to:

EASY
SINGLE CHOICE
30s
React
by Mohamed

Best default strategy for choosing state location is:

HARD
SINGLE CHOICE
45s
React
by Mohamed

Why might SSR improve perceived performance?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

Which of the following are valid ways to conditionally render components in React? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are benefits of using the Virtual DOM? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are valid use cases for useRef? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
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 of the following are part of the React component lifecycle? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are advantages of using React? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
React
by Mohamed

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

HARD
MULTIPLE CHOICE
45s
React
by Mohamed

Which rules does the diffing algorithm follow? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed
PreviousPage 115 of 186Next