Passing useState variable from page.tsx to layout.tsx using hooks
Unanswered
Rex posted this in #help-forum
RexOP
Hi, I wanted to ask you if you know how to use a variable useState from a file to another in javascript ( using hooks )?
Like if I have a page.tsx and a layout.tsx and I want to pass a useState variable from page to layout
Like if I have a page.tsx and a layout.tsx and I want to pass a useState variable from page to layout