Infovision, Inc. Interview Question

Difference between useEffect and componentDidMount?