tRPC example file structure question
Hi I'm reading tRPC docs for nextjs and they have a different file structure on their example. Would
layout.tsx be the equivalent of pages/_app.tsx or page.tsx? I'm not sure as my page.tsx has the code below and it looks nothing like the example

Solution:Jump to solution
Yes, it should go in your root layout. Look at Create T3 App for an example.
3 Replies