1.0.1 • Published 4 years ago
@bitbrother/fetch-dog-hooks v1.0.1
FETCH-DOG
React app http agent
TODO Decent docs
Install
npm install --save @vladblindu/fetch-dog
#or
yarn add @vladblindu/fetch-dog
Usage
!!! Reuires a BrowserRouter HOC to automaticaly redirect to error pages
Create a http-agent file in the ./src folder with the following content
import React from 'react
import fetchDog from 'fetch-dog'
import httpConfig from './config/http-agent.config.json'
const fetchDogHttpAgent = fetchDog
License
MIT © vladblindu