Netstratum interview question

Difference between class components and functional components