import { React } from "react"; import { DateTime } from "luxon"; import GoatCounter from "./GoatCounter"; const HistoryTable = (props) => { const data = props.data; console.log(data); let table = (
Date | Positive Case Rate |
{DateTime.fromSQL(element.date, { zone: "UTC" }) .setZone(DateTime.local().zoneName) .toLocaleString({ weekday: "long", month: "long", day: "2-digit" })} | {element.value}% |