From 4e1f2384da9fe75468ca6e21b3f65aa232695b22 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Mon, 2 May 2022 20:40:05 -0700 Subject: [PATCH] doc: add Table component to App.js --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index a3d3281..e324220 100644 --- a/src/App.js +++ b/src/App.js @@ -9,12 +9,14 @@ import { import axios from "axios"; import InfoBox from "./InfoBox"; import Map from "./Map"; +import Table from "./Table"; import "./App.css"; function App() { const [countries, setCountries] = useState([]); const [country, setCountry] = useState("worldwide"); const [countryInfo, setCountryInfo] = useState({}); + const [tableData, setTableData] = useState([]); useEffect(() => { axios.get("https://disease.sh/v3/covid-19/all").then((data) => { @@ -94,6 +96,7 @@ function App() {

Live Cases by Country

+

Worldwide new cases