I have gone through hooks introduced in react v16.7.0.
https://reactjs.org/docs/hooks-intro.html
So my understanding about hooks is we can play with state i
Functional components are purly stateless components. But in React 16.8, they have added Hooks. Hooks can be used in place of state and lifecycle methods.
Yes, you can think of useEffect Hook as Like
componentDidMount
componentDidUpdate,
componentWillUnmount
shouldComponentUpdate combined.
Note It is a close replacement for componentDidMount , componentDidUpdate and , componentWillUnmount & shouldComponentUpdate