Is router.tsx a magic file ? Is it hardcoded on Tanstack router ?
Is
In the Authenticated Routes example, there is no
https://tanstack.com/router/latest/docs/framework/react/examples/authenticated-routes?panel=code
But when I try to use only the
src/router.tsx treated as a special file ?In the Authenticated Routes example, there is no
router.tsx, only a main.tsxhttps://tanstack.com/router/latest/docs/framework/react/examples/authenticated-routes?panel=code
But when I try to use only the
main.tsx file, the app breaks with a very obscure messageAn example showing how to implement Authenticated Routes in React using TanStack Router.