Unity World interview question

difference between state and functional components in react