Having objects as dependencies in React useEffect hook
Overview of what useEffect hook is.
The useEffect hook enables us to run side effects in functional React components. These effects can include sending an asynchronous request to a third party API, logging a value to the console, manually changing th...
haybeecodes.hashnode.dev7 min read
Mitja Potočin
I think there is a mistake in this article.
“ If count’s value is same, the callback effect function ( first argument of useEffect hook ) is called”
If the valu is the same, the useEffect callback will not be run and vice versa.