BlackCaesar
BlackCaesar
SSolidJS
Created by younghustlercentral on 7/23/2023 in #support
Layout for layout group
You have to name it (app).tsx, same as the folder, and it should be on the same level as the folder not inside it. Make sure you have the Outlet component in the layout file as well. I believe you can also rename index.tsx to (app).tsx but imo it would be confusing to have 2 (app).tsx files, so rather name it something else like (home).tsx or rename the folder and the layout file.
4 replies
SSolidJS
Created by Zanoryt on 7/22/2023 in #support
What's the best way to create multiple layouts that only some routes use?
You can group routes in a folder whose name is surrounded by parentheses. The parentheses make it so the folder name isn't part of the route structure. Then you can make your layout in a tsx/jsx file with the same name as the folder above.
2 replies
SSolidJS
Created by BlackCaesar on 11/30/2022 in #support
How to move these divs?
Oh wow thanks a lot. That really put me on the right track. I will study both your solutions and learn from them.
5 replies