BlueOptima interview question

difference between functional component and class component