Infovision, Inc. interview question

Difference between useEffect and componentDidMount?