Simple and type-safe fetcher for Nextkit
import useSWR from "swr";import {fetcher} from "nextkit-fetcher";import type {NextPage} from "next";const Index: NextPage<Props> = (props) => {const { data } = useSWR("/api/user", fetcher);return <p>Hello {data.name}!</p>;};
Generated using TypeDoc
Simple and type-safe fetcher for Nextkit