https://github.com/threepointone/react-superagent
universal ajax as a react component
https://github.com/threepointone/react-superagent
Last synced: 2 months ago
JSON representation
universal ajax as a react component
- Host: GitHub
- URL: https://github.com/threepointone/react-superagent
- Owner: threepointone
- Created: 2015-07-23T19:12:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-29T20:39:14.000Z (almost 10 years ago)
- Last Synced: 2025-03-18T09:51:39.083Z (2 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 26
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
react-superagent
---`npm install superagent react-superagent --save`
universal ajax as a component
```js
import {Ajax} from 'react-superagent';...
{
({error, response, done}) => !done ?
loading...:
loaded! {JSON.stringify(response)}
}
```should work across node, browsers, react-native.