Pregunta de entrevista de Wipro

Explain the difference between class components and functional components in React. What is JSX in React? How does it differ from HTML? What are props in React? How do you pass data from parent to child components using props? What is state in React? How do you manage state in a functional component? What are React hooks? Can you name some commonly used hooks and explain their purposes? Explain the component lifecycle methods in React. How are they different in class components vs. functional components? What is the virtual DOM in React? How does it improve performance?