0.0.17-rc.6 • Published 2 years ago

react-http-lib v0.0.17-rc.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Getting Started with react-http-lib

Wrapper to do HTTP API calls.\ Uses Axios internally to make requests. \ This project was bootstrapped with Create React App.

Installation

In the project directory, you can run:

npm install --save react-http-lib

Runs the app in the development mode.\ Open http://localhost:3000 to view it in the browser.

How to use?

HTTP API call with method GET

callGetApi: async () => {
            try {
                    const response = await httpService.get(endPoint, params, contentType, backendUrl, extraHeaders, responseType, withCredentials);
                    console.log(response);
                } catch (e) {
                    setResponse(undefined);
                    setError(e as any);
                    console.log('Http Error(from Storybook)', e);
                }
            }
       }
Refer storybook for more examples
0.0.17-rc.6

2 years ago

0.0.17-rc.3

2 years ago

0.0.17-rc.2

2 years ago

0.0.17-rc.5

2 years ago

0.0.17-rc.4

2 years ago

0.0.15

2 years ago

0.0.1-7.rc-1

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.17-rc.1

2 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

3 years ago

0.0.1

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago