GitHunt
VI

VitorLuizC/react-async-task

React.js hooks to manage async tasks.

React.js Async Task

Continuous Integrations
License
Library minified size
Library minified + gzipped size

Installation

This library is published in the NPM registry and can be installed using any compatible package manager.

npm install react-async-task --save

# For Yarn, use the command below.
yarn add react-async-task

Installation from CDN

This module has an IIFE bundle available through JSDelivr and Unpkg CDNs.

<!-- For UNPKG use the code below. -->
<script src="https://unpkg.com/react-async-task"></script>

<!-- For JSDelivr use the code below. -->
<script src="https://cdn.jsdelivr.net/npm/react-async-task"></script>

<script>
  function useProductList() {
    // IIFE module is exposed through the "ReactAsyncTask" global variable.
    return ReactAsyncTask.useAsyncTask(fetchProductList);
  }

  // ...
</script>

License

Released under MIT License.

Languages

TypeScript86.1%JavaScript13.9%

Contributors

Latest Release

v0.1.0May 27, 2022
MIT License
Created May 25, 2022
Updated August 8, 2022
VitorLuizC/react-async-task | GitHunt