Calibraint interview question

spread operator, functional components, class components