import { fetchCSV } from "macro:fetchCSV";
export const Covid19 = () => {
const rows = fetchCSV(
"https://covid19.who.int/WHO-COVID-19-global-data.csv",
{
last: 100,
columns: ["New_cases", "Date_reported", "Country"],
}
);
return (
Covid-19
last {rows.length} updates from the WHO
{rows.map((row, index) => (
{row[0]}
{row[1]}
{row[2]}
))}
);
};
se
Unnamed repository; edit this file 'description' to name the repository. | |