Can I use both raw and react tRPC client?

// Raw client
const post = await trpc.post.byId.query({ id: "1" })

const addPost = await trpc.post.add.mutate({ title: "hello world" })

// React
const postQuery = trpc.post.byId.useQuery({ id: "1" })
const addPostMutation = trpc.post.add.useMutation()
Was this page helpful?