employer cover photo
employer logo
employer logo

WINUX Software Solutions

Est-ce votre entreprise ?

Question d’entretien chez WINUX Software Solutions

What is the differencenece between class and functional component?

Réponse à la question d'entretien

Utilisateur anonyme

22 sept. 2025

Class Component → Uses ES6 class syntax. State is managed using this.state and updated with this.setState(). Uses lifecycle methods (componentDidMount, componentDidUpdate, componentWillUnmount). Functional Component → Just a plain JavaScript function. State is managed using React Hooks (useState, useReducer). Uses useEffect hook for all lifecycle behaviors.