How calling setState in useEffect can cause re-renders in a loop.
I was developing a blog site.
And I knew if I used the setState function in useEffect it could cause an error but I did not know how to fix it.
I was fetching data in useEffect to display the page with its respective data and I also used dynamic rout...
gauravv.hashnode.dev4 min read