utils/trcp.ts
ssr: true
pages/index.tsx
const hello = trpc.hello.useQuery({ text: 'client' }); if (!hello.data) { return <div>Loading...</div>; }