import useSWR from "swr"; import logo from "./logo.svg"; import "./App.css"; const url = "https://rcpoller.galenguyer.com/api/v0/history"; function App() { const { data: data, error: error } = useSWR(url); if (error) return (

RIT Covid Dashboard

An error occurred

); if (!data) return (

RIT Covid Dashboard

Loading latest data...

); return (

RIT Covid Dashboard

Data Loaded

); } export default App;