Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, it makes a http request but it seems to do nothing with the data returned.


The data is set as component state

  .then(
        planet => this.setState({ loading: false, planet }),
        error => this.setState({ loading: false, error })
       );




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: