How template.tsx and page.tsx should look like in that scenario?
Answered
Russian Toy posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Russian ToyOP
Hey, could someone help me solve that problem?
![Image](https://cdn.discordapp.com/attachments/1150404746298007653/1150404746453192804/image.png)
6 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
whats your problem?
also is there a reason why your not using normal layout?
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
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)
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Russian ToyOP
Answer