score:0

if you notice your class name is charts and you call it as chart

since you went straight, call the following way:

this.props.json

no need to state or anything

score:0

i think its better do this

    axios.get(`https://covid19.mathdro.id/api/daily`).then(response => {
      this.setstate({ json: response.data });
    });

it works for me , for second api do this


Related Query

More Query from same tag