If I remove the useEffect my app keeps getting rendered and I end up getting the infinite re-renders error. I would like to understand the reason for it.
co