r/reactjs • • Sep 14 '25
Discussion File-based routing vs code-based routing in TanStack router, which one do you use and why?
[deleted] — view deleted post
35
Upvotes
r/reactjs • • Sep 14 '25
[deleted] — view deleted post
View all comments
Show parent comment
3
u/haschdisch Sep 14 '25
Colocation by component hierarchy scales much better in my experience. Route files tend to blur too much business domain and routing and it becomes quickly messy.