Using this.setstate with Fetch API

前端 未结 0 1494
说谎
说谎 2021-01-03 13:30

I\'m trying to use a fetch call to retrieve some API data. Unfortunately I cannot use this to set the state.

consructor() {
    this.state = {
      weather:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题