Question d’entretien chez Accenture

Based On React Js and Java Script what is functional and class Components? what are the differences between functional and class components? what are the lifecycles of the functional components? How we can Achieve lifecycles in Functional Components?