nitestack
nitestackā€¢16mo ago

Next.js app router + TRPC...how to set it up?

Note You can already use tRPC with app directory, by:
>
- using @trpc/client directly in components (both RSC and non-RSC) - use @trpc/next for client components
I saw this written in the readme of the example-next-app-dir What does this mean? How can I set it up?
4 Replies
Aleed.dev
Aleed.devā€¢16mo ago
hey you can watch this video it explains how to setupd trpc with app router https://www.youtube.com/watch?v=qCLV0Iaq9zU&t=0s
Jack Herrington
YouTube
tRPC + NextJS App Router = Simple Typesafe APIs
Upcoming course: pronextjs.dev šŸ‘‰ Code : https://github.com/jherr/trpc-on-the-app-router šŸ‘‰ Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ šŸ‘‰ Discord server signup: https://discord.gg/ddMZFtTDa5 šŸ‘‰ VS Code theme and font? Night Wolf [black] and Operator Mono šŸ‘‰ Terminal Theme and font? oh-my-posh with powerlevel1...
Vilian
Vilianā€¢16mo ago
This doesn't showcase how to implement context
DrippyDog
DrippyDogā€¢16mo ago
no context still
Eternal Mori
Eternal Moriā€¢16mo ago
See the code from the T3 Turborepo. https://github.com/t3-oss/create-t3-turbo