React Interview Questions
React Interview Questions
1. What is React?
2. What are components in React?
3. What is the virtual DOM?
4. What is JSX?
5. What are props in React?
6. What is state in React?
7. What is the difference between state and props?
8. What are React hooks?
9. What is the use of useState in React?
10. What is the useEffect hook, and how is it used?
11. What is a functional component?
12. What is a class component in React?
13. What are React events?
14. What is the significance of key in React lists?
15. What is React Router, and how is it used?
16. What is the context API in React?
17. How does React handle forms?
18. What is Redux, and how does it integrate with
React?
19. What are higher-order components (HOCs)?
20. What are controlled and uncontrolled components in
React?
21. How do you handle error boundaries in React?
22. What is the purpose of
shouldComponentUpdate in class components?
23. How do you optimize performance in React
applications?
24. What are the lifecycle methods in React?
25. How does React handle conditional rendering?