1.0.12 • Published 5 years ago

use-fetch-custom-params v1.0.12

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

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago