1.0.12 • Published 4 years ago

use-fetch-custom-params v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago