bitbackend
v1.0.2
Published
A simple react hook for RESTapi management
Downloads
3
Maintainers
Readme
Use-Backend
Unstable Package
Please note that this package is experimental and has not been tested for production use.
Idea
Just funny hook to use backend of your's! To use this package for easily fetch data from your backend without having to write long codes.
Installation
use
npm i bitbackend
or if you're using yarn,
yarn add bitbackend
Configure your backend.
To configure your backend, you can use the configureBackend
function from BitBackend
import { useBackend } from 'bitbackend';
useBackend.configure({
baseUrl: 'mybackend.com',
...otherConfig
// your api configurations as required by the
})
Making a backend call
To make a call to your backend, you can use call provided by bitbackend.