Rob Levin
1 min readJul 9, 2019

--

Wow, 1 minute well invested sir! I like how we’re basically:

  1. Creating a custom hook
  2. Using async/await pattern
  3. Made a reusable fetchUrl method.

Yes, for a “real app” I think adding a second config param and error handling is all that’s needed for that provided you’re already in Babel / Webpack land with all the requisite shims. Thanks for this article…very helpful!

--

--

No responses yet