Availity interview question

(React) What is the difference between a class component and a functional component?

Interview Answer

Anonymous

6 May 2020

Class: extends React.Component, can have a constructor, uses lifecycle methods Functional: the new way, pure JS function, no constructor, uses hooks instead of lifecycle methods