Skip to content

hariacharya80/React-Use-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

import { useBackend } from 'bitbackend';

    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published