score:0

Accepted answer
// add optional chaining for below 
props.data.confirmed.value => props.data.confirmed?.value
props.data.recovered.value => props.data.recovered?.value
props.data.deaths.value => props.data.deaths?.value

score:0

<div className={styles.container}>
  if(this.state) {
    <Cards data={this.state.data}/>
  } else {
    <p>Loading data...</p>
  }
  <CountryPicker />
  <Chart />
</div>
  

Related Query

More Query from same tag