1.0.12 • Published 6 years ago

use-fetch-custom-params v1.0.12

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

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.10

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.3

6 years ago

1.0.0

6 years ago