Himanshu
Himanshu
i am getting same error {"error":{"message":"Country `country` not found in JHU database"}}
import axios from 'axios'; const url = 'https://covid19.mathdro.id/api'; export const fetchData= async (Country)=>{ let changeableurl=url; if(Country){ changeableurl='${url}/countries/${Country}' } try { const { data: {confirmed,recovered,deaths,lastUpdate}}=await axios.get(changeableurl); return {confirmed,recovered,deaths,lastUpdate} } catch (error)...
> Could you share your src/api/index.js? if i select any country from country picker then data of country is showing .I think is this error ? pls help fast