trpc/react vs trpc/server

Can someone explain what the differences and when to use which? I just watched this https://youtu.be/PmBfq-SpzCU and am a little confused on that part.

  1. What are the pros and cons of each?
  2. Should I always use trpc/server for Server Components and trpc/react for Client Components?
  3. What role does trpc/server play on Server Components when I can directly use db.query..posts.findMany()?
YouTubeTheo - t3․gg
GITHUB LINK https://github.com/t3-oss/create-t3-app

So proud of the entire Create-t3-app team for this massive ship. The T3 Stack has never been better. APP ROUTER IS HERE.

Check out my Twitch, Twitter, Discord more at https://t3.gg

S/O Ph4seOn3 for the awesome edit 🙏
Was this page helpful?