Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.25 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.25 KB

😷 Covid-19 App WITHE REACT.JS

A flexible and responsive carousel component for react

How to Use ?

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....

Installing

Using npm $ npm install axios

Using bower $ bower install axios

Using yarn $ yarn add axios

NOTE:

async/await is part of ECMAScript 2017 and is not supported in Internet Explorer and older browsers, so use with caution.

Usage

  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);
      })
  }
}

How will it be like 🙂

Laptop 🖥️ Mobile 📱

THANK'S FOR 👁️‍🗨️

creating BY_Navid_Mansuri...