BlueOptima Interview Question

difference between functional component and class component