React useEffect and fetch API

      5 min read        · · ·

Howdy!!! React (16.8?) introduced hooks not long ago and I have been using them more and more to create functional components where state and effects are easily identifiable and maintenance-friendly. I have found the React docs quite good at explaining what they are and how you are supposed to use them. You can read more about them here: https://reactjs.org/docs/hooks-intro.html useEffect The useEffect hook let’s you perform side effects in function components, those side effects could be: