Sun* interview question

Difference between useState and useEffect