homepage/src/pages/_app.js

19 lines
375 B
JavaScript
Raw Normal View History

2022-08-24 10:44:35 +03:00
import { SWRConfig } from "swr";
import "styles/globals.css";
import "styles/weather-icons.css";
function MyApp({ Component, pageProps }) {
return (
<SWRConfig
value={{
fetcher: (resource, init) =>
fetch(resource, init).then((res) => res.json()),
}}
>
<Component {...pageProps} />
</SWRConfig>
);
}
export default MyApp;