Best way to separate layouts?
Answered
Morelet’s Crocodile posted this in #help-forum
Morelet’s CrocodileOP
Hi. I want to have a different layout for my home page ( "/" URL) but I'm not sure how I should go about it, since I can't name a folder blank basically. The route groups thing seems to act in a buggy way where I get flickering of the component that I don't want in the homepage but want it in other routes.
What would be the best approach to solve this?
What would be the best approach to solve this?
Answered by fuma
You should use [Route Groups](https://nextjs.org/docs/app/building-your-application/routing/route-groups) for that. I am not sure why you're having problems with it, I'm willing to help with that if you can provide some useful information.
1 Reply
@Morelet’s Crocodile Hi. I want to have a different layout for my home page ( "/" URL) but I'm not sure how I should go about it, since I can't name a folder *blank* basically. The route groups thing seems to act in a buggy way where I get flickering of the component that I don't want in the homepage but want it in other routes.
What would be the best approach to solve this?
You should use [Route Groups](https://nextjs.org/docs/app/building-your-application/routing/route-groups) for that. I am not sure why you're having problems with it, I'm willing to help with that if you can provide some useful information.
Answer