13 lines
325 B
TypeScript
13 lines
325 B
TypeScript
'use client';
|
|
|
|
import { createTRPCReact } from '@trpc/react-query';
|
|
import type { AppRouter } from '@repo/api';
|
|
|
|
/**
|
|
* Typed tRPC React Query hooks for client components.
|
|
*
|
|
* import { trpc } from '@/lib/trpc/client';
|
|
* const { data } = trpc.ping.ping.useQuery();
|
|
*/
|
|
export const trpc = createTRPCReact<AppRouter>();
|