Please note that this package is experimental and has not been tested for production use.
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.
use
npm i bitbackend
or if you're using yarn,
yarn add bitbackend
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
})
To make a call to your backend, you can use call provided by bitbackend.