Capgemini interview question

functional components vs class components, hooks, custom hooks,