Question d’entretien chez Springreen

they asked about class based and functional component

Réponse à la question d'entretien

Utilisateur anonyme

31 mai 2025

Class-based components use ES6 classes and have lifecycle methods, while functional components are simpler functions that use hooks like useState and useEffect for state and side effects. Functional components are now preferred for their cleaner syntax and better performance with hooks.