Javascript – Can I use a client component (nav bar) in the root layout of my Next.js app?
I'm using Next.js and I have a root layout file in my app router. However, i'm encountering an error in my <Nav/> component because it's using state to keep track of whether the mobile nav is open or not. the…