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/MindZestyclose7831 Nov 12 '25
It was driving me nuts too. Too much hell to track. Code based is best, you can split the logic and follow the react-router approach. File based routing is so confusing and there is alot of friction.