fetch("https://disease.sh/v3/covid-19/all") .then(response => response.json()) .then(data => ( this.setState( { covid_world : data } ) )) }
I use this method to get the data from the APIs and stored them into the state. If you want to see the whole project Covid19-info for detail.
Thank you @surajsrv11 , I already figure it out I just forgot to insert the http protocol that's why the API didn't work. I already try your project and now I'm at the 2nd one.
That's Great, keep developing 🔥🔥🔥
Some comments have been hidden by the post's author - find out more
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I use this method to get the data from the APIs and stored them into the state. If you want to see the whole project Covid19-info for detail.
Thank you @surajsrv11 , I already figure it out I just forgot to insert the http protocol that's why the API didn't work. I already try your project and now I'm at the 2nd one.
That's Great, keep developing 🔥🔥🔥