I have seen these two new concepts introduced in react v16.

As per my understanding:

> 
> `useState` is similar like `setState` with hooks and `useEffect` works similarly like life cycle methods.
> 
> 
> 

Is my understanding correct? If not, what’s the exact difference between `useState` and `useEffect`?