Extracted fetcher into separate file

This commit is contained in:
Neshura 2022-12-17 21:30:31 +01:00
parent bb76b00506
commit f7d3d7c7ca
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

1
components/fetcher.tsx Normal file
View file

@ -0,0 +1 @@
export const fetcher = (url:string) => fetch(url).then((res) => res.json());