Using the useEffect() Hook
useEffect hook without mentioning any dependency array like.. useEffect(someCallbackFuction); runs for every render of the functional component in which its included..
useEffect hook with an empty dependency array like this.. useEffect(callbackFunc...
omarsaade.hashnode.dev2 min read