A Detailed Guide to the useEffect Hook in React
Too Long; Didn't Read
React's useEffect hook is one of the trickiest and most powerful hooks in functional components. It allows you to perform side effects in react. A ‘side effect’ is any operation that affects something outside of the component such as making a REST API call, updating the DOM, etc. It should be used anytime you need your functional component to perform a side effect.