DEV Community


Discussion on: React: Creating a Custom Hook for Fetching Data

notrab profile image
Jamie Barton

Nice read Sabastian!

I recently inherited a project that had something similar, and, it took me quite a bit of time to get familiar with the magic it had abstracted. Your's looks a lot easier to follow to say the least. is also a great alternate that takes care of some additional magic if anyone reading doesn't feel like maintaining their own fetch hook.

admantium profile image
Sebastian Author

Hi Jamie, that's a good link you provided. Indeed there are several fetch hooks on Github and other sources. My article is primary a tutorial to get into hooks and understand them. Once familiar, more complex implementations and examples become accessible.