Pergunta de entrevista da empresa CSRE, IIT Bombay

Explain the difference between useEffect and useState.