Next.js Discord

Discord Forum

How template.tsx and page.tsx should look like in that scenario?

Answered
Russian Toy posted this in #help-forum
Open in Discord
Avatar
Russian ToyOP
Hey, could someone help me solve that problem?
Image

6 Replies

Avatar
Risky
whats your problem?
also is there a reason why your not using normal layout?
Avatar
Russian ToyOP
I'd like to use state in template.tsx and I wonder how tmplate.tsx knows where is the hook for page.tsx (black font)
because (maybe I'm wrong) to render nested page I need to pass children through template AND page.tsx
so somehow it's not possible to put nested page.tsx in a side to page.tsx(black)
Answer