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
![No description](https://cdn.answeroverflow.com/1266024248808444025/4e9ed052-5bf6-469c-815c-790451b19203.png)
Solution:Jump to solution
Yes, it should go in your root layout. Look at Create T3 App for an example.
3 Replies