Pregunta de entrevista de CSRE, IIT Bombay

Explain the difference between useEffect and useState.