bitbackend

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i bitbackend

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.32 kB

Total Files

6

Last publish

Collaborators

  • hariacharya