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

33 comments sorted by

View all comments

5

u/nullpointer_sam Sep 14 '25

You are choosing between 2 things:

  1. Spend more time setting up the routing and folder structure to keep it organized. (Code routing)
  2. Start right away and then see how your project becomes a folder mess.

1st for big projects, 2nd for quick personal stuff.