News for hackers. Stuff that matters.
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by k__ on Thursday March 24, 2016 @05:05PM (#11356428)
It's just a different way of structuring.

api = new Api('http://my.cool.api')

api.get('/it')

api.post('/it')

// connect = rootUrl => method => endpoint

api = connect('http://my.cool.api')

get = api('GET')

post = api('POST')

get('/it')

post('/it')

There are no comments on this comment yet.