Hacker News new | ask | show | jobs
by arianvanp 3148 days ago
This is a shorthand for

    function (r) { return r.json()}
Note the extra return. We return the JSON decoded response that is our planet. and use its value to set state if no error occured
1 comments

Got it! Thanks!