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
1
u/wbdvlpr Sep 14 '25
File based because it is recommended and has the least boilerplate. It has its downsides but the alternatives just seem worse. However, the project doesn’t have many routes though. If it had, I might re-evaluate the decision