2.0.2 • Published 2 years ago

react-http-hook-use-fetch v2.0.2

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

react-http-hook-use-fetch

React hook to fetch data over http using native fetch method

How to use

import { useFetch } from 'react-http-hook-use-fetch'

Then, in your function component:

const { loading, data } = useFetch( url );

or

const { loading, data } = useFetch( url, { headerKey: headerValue }, 'POST', { key: value } );

Editor Configuration

  • Editor of your preference. I used some VSCode specific config in .vscode folder and recommend plugins for enhanced experience.

Recommended VSCode Extensions:

  • Prettier (Official) - Code formatter
  • ESLint (Official) - Real time JS syntax validation

Technologies Used

Available Scripts

In the project directory, you can run:

yarn build

To build the project

yarn fix:all

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago