1.1.1 • Published 9 years ago

react-superagent v1.1.1

Weekly downloads
29
License
ISC
Repository
github
Last release
9 years ago

react-superagent

npm install superagent react-superagent --save

universal ajax as a component

import {Ajax} from 'react-superagent';

...
<Ajax url='/my/api' method='post' send={{some: 'data'}}>{
  ({error, response, done}) => !done ?
    <div>loading...</div> :
    <div>loaded! {JSON.stringify(response)}</div>
}</Ajax>

should work across node, browsers, react-native.

1.1.1

9 years ago

1.1.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago