UNPKG

@clipstake/view-tracking

Version:

A tRPC-based view tracking service with client for Next.js apps

11 lines (10 loc) 250 B
import { createTRPCClient, httpBatchLink } from "@trpc/client"; export function createClient(options) { return createTRPCClient({ links: [ httpBatchLink({ url: options.url, }), ], }); }