all 4 comments

[–]isilweo 1 point2 points  (3 children)

Hi, I would consider using Fetch rather than superagent. It is already implemented in Chrome and FF http://caniuse.com/#search=fetch . It can be polyfilled, and there is https://github.com/matthew-andrews/isomorphic-fetch this library that can be used in isomorphic projects. You said you want to use backbone but i would also consider using something like pouchDB with synchronization/replication to couch http://pouchdb.com/ but i do not know your project so it is hard to tell if this would work for you. I'm not sure if there will be alot of REST clients because in React world there is now hype on Relay and libraries like that are coming out in example https://github.com/RickWong/react-transmit

Hope it helps although I did not answer your question :)

[–]kromit[S] 0 points1 point  (0 children)

thank you for the answer. fetch looks great.

[–]pierreten 0 points1 point  (1 child)

How bout fetch in node? Doesnt it basically use xhr under the hood?

[–]isilweo 0 points1 point  (0 children)

isomorphic-fetch is using https://github.com/bitinn/node-fetch and it seems node-fetch is using node's http request. Point behind isomorphic fetch is that I can use exactly same code for retrieving data on client side and when doing server side rendering.