#Solid Start (experiments) nested layout

2 messages · Page 1 of 1 (latest)

native bluff
#

But what about a nested layout at the root of the project?

It's entirely possible that I'm misunderstanding something but the root component is the page layout that all other routes are nested into.

There is nothing stopping you from factoring it out into it's own tsx file.

FYI: #1234062681455988736 message

GitHub

SolidStart, the Solid app framework. Contribute to solidjs/solid-start development by creating an account on GitHub.

native bluff
#

Are you talking about Route Groups (Next)?

The biggest difference I see with a nested layout
is that if you have a /dashboard route, the layout in Next is defined as
app/dashboard/layout.tsx

while in Start it would be

routes/dashboard.tsx (provided there is a routes/dashboard/index.tsx or equivalent)

The equivalent for Next's app/layout.tsx in Start is the root component in app.tsx.

Create your first shared layout in Next.js.