Capgemini Interview Question

How to create the class component and function component?