From 5d5c39b6d318a91dd5062d829cecf3dcdd25ccab Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 13 Nov 2020 20:38:09 -0500 Subject: Add swr and configs --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index c965911..ea743ca 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,16 @@ import React from "react"; import ReactDOM from "react-dom"; +import { SWRConfig } from "swr"; import "./index.css"; import App from "./App"; -import reportWebVitals from "./reportWebVitals"; + +const fetcher = (...args) => fetch(...args).then((res) => res.json()); ReactDOM.render( - + + + , document.getElementById("root") ); -- cgit v1.2.3