1.0.12 • Published 3 years ago

use-fetch-custom-params v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

useFetch custom hook with parameters

npm version npm downloads

Usage

Install the package in your project:

npm i use-fetch-custom-params@1.0.3

In your code:

import useFetch from 'use-fetch-custom-params'
 
const url = 'https://jsonplaceholder.typicode.com/posts';
 
const { data, isLoading, hasError, errorMessage, setNewUrl, updateParams } = useFetch(url);
 
console.log(data);
1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago