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
export default async function Home() {
return ( /* components */ )
}
export default async function Home() {
return ( /* components */ )
}
No description
Solution:
Yes, it should go in your root layout. Look at Create T3 App for an example.
Jump to solution
3 Replies
filyys
filyysOP4mo ago
Bump
Solution
cje
cje4mo ago
Yes, it should go in your root layout. Look at Create T3 App for an example.
filyys
filyysOP4mo ago
Alright thanks for the answer
Want results from more Discord servers?
Add your server