main-site/components/fetcher.tsx
2022-12-17 21:30:31 +01:00

1 line
76 B
TypeScript

export const fetcher = (url:string) => fetch(url).then((res) => res.json());