Question Bank

3705 approved questions from the community

What is render hijacking in React?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the windowing technique in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

How do you write comments in JSX?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What is the purpose of componentDidCatch lifecycle method?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the diffing algorithm in React?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What is the purpose of React.Fragment?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What does StrictMode do in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the purpose of getSnapshotBeforeUpdate lifecycle method?

HARD
SINGLE CHOICE
45s
React
by Mohamed

Which guidelines should you follow when writing reducers? (Select all that apply)

HARD
MULTIPLE CHOICE
45s
React
by Mohamed

Which lifecycle methods are invoked during component unmounting? (Select all that apply)

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the purpose of dangerouslySetInnerHTML in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the main difference between createElement and cloneElement?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is lifting state up in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

Why does React use className instead of class attribute?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What is the difference between Shadow DOM and Virtual DOM?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the purpose of cloneElement in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

When should you use useImperativeHandle?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What is the purpose of forwardRef in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

What is the main advantage of Server-Side Rendering (SSR) in React?

HARD
SINGLE CHOICE
40s
React
by Mohamed

What does JSX stand for?

EASY
SINGLE CHOICE
20s
React
by Mohamed
PreviousPage 114 of 186Next