@bitbrother/fetch-dog-hooks

React app http agent

Usage no npm install needed!

<script type="module">
  import bitbrotherFetchDogHooks from 'https://cdn.skypack.dev/@bitbrother/fetch-dog-hooks';
</script>

README

fetch-dog logo

FETCH-DOG

React app http agent

TODO Decent docs

version <ORG_NAME> NPM JavaScript Style Guide

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