Having objects as dependencies in React useEffect hook
In this article, I gave an overview on what the useEffect hook is , pointed out an issue in having objects as dependencies and how to go about this issue.
·7 min read·haybeecodes.hashnode.devUpdated Read the article
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.