A set of hooks that provide an async version of core React hooks. With the native React API you would have to check if the effect or the component are still mounted after each and every Promise resolution. Example:
This package takes a unique approach by using generators to determine whether the execution should continue or abort.
const fetchJson =;
The source is available via GitHub or via the NPM registry:
yarn add react-async-core-hooks