File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
React Projects/react interview Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments