A flexible and responsive carousel component for react
I have used Coronavirus's API in it which keeps the data of the entire country. And that's how I put it in the table of HTML (Like). In the proof below, the screenshots of which the pictures are given....
Using npm
$ npm install axios
Using bower
$ bower install axios
Using yarn
$ yarn add axios
async/await is part of ECMAScript 2017 and is not supported in Internet Explorer and older browsers, so use with caution.
componentDidMount() {
axios.get("https://{YOUR_API}")
.then(response => {
this.setState({ Countries: response.data.{"The data you need"})
console.log(response.data);
})
.catch(error => {
console.log(error);
})
}
}
Laptop 🖥️ | Mobile 📱 |
---|---|
![]() |
![]() |
creating BY_Navid_Mansuri...