Pregunta de entrevista de Capgemini

How to create the class component and function component?