In the official React useEffect documentation, useEffect is compared with componentDidMount and componentDidUpdate like this:
useEffect
componentDidMount
componentDidUpdate
<