Nextjs Multi layout setup
Is there a standard way to handle multiple view ui changes in nextjs app dir.
I would like to conditionally render a basic / advanced view on a page based on user's choice
should I use route groups for each route to handle this setup
example
mode toggler is in
app/(dashboard)/layout.client.tsx
based on selected view when user navigates to home either show the basic view or advanced
app/(dashboard)/(advanced)/home/page.tsx
and
app/(dashboard)/(basic)/home/page.tsx
0 Replies