Unity World Interview Question

difference between state and functional components in react