react interview questions
react interview questions
*JavaScript*
*React.js*
1. What is the virtual DOM, and how does React use it?
2. Explain the difference between functional components and class components in React.
3. What is the purpose of useState and useEffect hooks?
4. How does props differ from state in React?
5. What are controlled and uncontrolled components in React?
6. How do you handle forms in React?
7. What is React context, and how does it help in state management?
8. How would you optimize a React application for performance?
9. What is the difference between useMemo and useCallback hooks?
10. Explain React's lifecycle methods and their equivalents in hooks.
*Redux*