Pergunta de entrevista da empresa Springreen

they asked about class based and functional component

Resposta da entrevista

Sigiloso

31 de mai. de 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.