So far, we can perform simple API calls using fetch, and we know how to organize our code to be reusable. In some areas, however, we could do better if our application required it. Before we dive in Redux Saga, I want to introduce two new patterns: iterator and generator.
- JavaScript guide on MDN web docs at:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators.