Skip to content

Commit 42cea99

Browse files
committed
react mcq
1 parent 2ad6b6d commit 42cea99

File tree

1 file changed

+30
-0
lines changed
  • React Projects/react interview

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
📘 Section A (1 mark each)
2+
What does JSX stand for?
3+
✅ A) JavaScript XML
4+
5+
Which hook is used to manage state in a functional component?
6+
✅ B) useState
7+
8+
Props in React are:
9+
✅ C) Passed from parent to child
10+
11+
What is the default method to pass data between components?
12+
✅ B) Props
13+
14+
Which hook is used to run side effects?
15+
✅ D) useEffect
16+
17+
In React Router, which component is used to handle route changes without reloading?
18+
✅ B) <Link>
19+
20+
Which of the following is NOT a valid lifecycle phase for a functional component?
21+
✅ D) Freezing
22+
23+
What is the purpose of a reducer in Redux?
24+
✅ C) To return a new state based on the action
25+
26+
Which hook allows sharing logic between components?
27+
✅ C) Custom Hooks
28+
29+
Middleware in Redux is used for:
30+
✅ B) Logging and async calls

0 commit comments

Comments
 (0)