Next.js Discord

Discord Forum

How do I use a Navigation Bar in a layout to swap content on a single page

Unanswered
Eulophid wasp posted this in #help-forum
Open in Discord
Eulophid waspOP
Im currently trying to create a nav bar that lives in the layout of another page and I want to use it to swap view between a dashboard and a map view, but im kinda stumped on how to maintain it on the server but still keep the same functionality. would I just have to make those 2 views into seperate components and manage it all client side or is there a server side solution that im unaware of.

This is what i have so far

0 Replies