From b42aab585bec8d5f0f1f6a77dcafdb5b2f5398e5 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 21:07:24 -0700 Subject: [PATCH] doc: add onClick method to use setCasesType --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index 7cc0864..1715420 100644 --- a/src/App.js +++ b/src/App.js @@ -86,16 +86,19 @@ function App() {
setCasesType("cases")} title="Coronavirus Cases" cases={prettyPrintStat(countryInfo.todayCases)} total={prettyPrintStat(countryInfo.cases)} /> setCasesType("recovered")} title="Recovered " cases={prettyPrintStat(countryInfo.todayRecovered)} total={prettyPrintStat(countryInfo.recovered)} /> setCasesType("deaths")} title="Deaths" cases={prettyPrintStat(countryInfo.todayDeaths)} total={prettyPrintStat(countryInfo.deaths)}