Im using tanstack router right?
Hi, my first time using tanstack router, i already worked with react router, but right i use next js, but i have an project that i need to use react, so i decided to give a try on tanstack router, and i liked the way it works, but im structuring my code in the right way? should that be done like that? on __root.tsx should i hard code my app header, and styles? can or i should condicional rendering routes links if user are logged in or not? Thank you


1 Reply
stormy-gold•9mo ago
Yeah that looks right to me. Check the docs on the vite plugin and file-based routing: https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#configuration-with-vite
File-Based Routing | TanStack Router React Docs
Most of the TanStack Router documentation is written for file-based routing and is intended to help you understand in more detail how to configure file-based routing and the technical details behind h...