Menu

tanstack router vs react router, my two cents
📰

tanstack router vs react router, my two cents

DEV Community: react·nayem·1 day ago
#4rFoERKu
#devtoreact#devto#dev#router#react
Reading 0:00
15s threshold

Every React app I have ever shipped used React Router. It was never a decision. It was just what you did, like npm install and a src folder and arguing about semicolons in code review.

Then TanStack Router started showing up everywhere I looked. I spent a weekend reading both sets of docs side by side, and here is the honest version, no fanboy stuff either way.

Where React Router stands now

React Router v7 landed in late 2024 and merged with Remix, so it is a different animal than the v6 most of us learned. Everything lives in one package now, just react-router , and there are three modes: declarative (the classic Routes and Route components), data (createBrowserRouter with loaders and actions), and framework (file-based routes with SSR, basically the old Remix life). It is the safe default. Ten years of Stack Overflow answers exist for every problem you will hit.

What TanStack Router is actually selling

Type safety, end to end. That is the pitch, and it is a good one.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.