End-to-end typesafe tRPC queries in React with httpBatchLink and createTRPCReact
tRPC v10 with createTRPCReact and httpBatchLink lets React call backend procedures with full TypeScript inference. Define an AppRouter on the server, type the client to it, and use inferred useQuery/useMutation hooks.