kripod/react-hooks

Consider adding `useFetch` hook

kripod opened this issue · 1 comments

Motivation

Data fetching is a common practice in web applications. While a useFetch hook would be useful, React's Suspense API is destined to replace it.

Basic example

https://codesandbox.io/s/jvvkoo8pq3, taken from the official React Hooks FAQ

Details

How to fetch data with React Hooks? – Robin Wieruch

React Async already provides a well-engineered, thematic solution for this problem.