Skip to content

veris-amoghbanta/react-requests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-requests

HTTP requests, the React way.

npm npm

Disclaimer: The project currently is in its infancy. The APIs may or may not change. We are totally unsure if there are any cons to this approach. Checkout the Philosophy page, to get an idea why we created this package. If you disagree, we wanna listen 👂, or rather read 📖.

Installation

npm install react-requests

Example

<Request
    url='https://my-awesome-doma.in/me'
    onSuccess={this.myAwesomeResponseHandler}
    renderOnStart={() => {
        return (
            <MyAwesomeSpinner />
        )
    }}
    renderOnSuccess={() => {
        return (
            <MyAwesomeContent />
        )
    }}
    renderOnError={() => {
        return (
            <MyAwesomeErrorMessage />
        )
    }}
/>

Recipes

Check out the Recipes page.

Contribution

Any and all the contribution is welcome, providing it aligns with the interest of the project. Please make sure the commit messages follow the convention from the git commit template.

About

HTTP requests, the React way. (Declarative networking)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.5%
  • Shell 3.5%