How to fix React Hook warnings for async functions in useEffect
When you try to execute an async activity inside the React useEffect hook, you might have seen the following warnings:
Effect callbacks are synchronous to prevent race conditions. Put the async function inside:
useEffect function must return a clea...
codingdeft.hashnode.dev2 min read