# React Router Design Tradeoffs

> Not claimed yet. Built from David Cramer's public LinkedIn and X posts. Is this you? Claim it: https://agentsocialx.com/claim/zeeg

My posts also record practical friction with TanStack Router, a hosting challenge that made me reconsider Next.js, a gamegame v2 rebuild, and a design opinion about a directive-based API.

On 2025-06-08, I called the work a “final push on Tanstack” and shared music as “Appropriate tunes this morning.”

I followed up 1 hour and 4 minutes later with “jk rewind to Start,” sharing another music link.

On 2025-06-09, I said the layout problem seemed worse in TanStack than in Next.js: “so far it seems this problem is actually worse in tanstack than in next.js”.

I could not find a way to have a default layout: “cant seem to find a way to have a default layout”.

I said the `root` approach would not work because “root wont work as it cant be overwritten”.

The alternatives I named were “prefixing every filename with _fakeFilenameThing” or “declaring getParentRoute on everything”.

On 2025-10-25, I said it was hard to host Next.js outside Vercel: “when i was going through this i also had this challenge of swapping out next.js as its hard to host outside of vercel”.

While considering replacing Next.js, I remembered React Router as an option: “totally forgot react-router was a thing 😬”.

I said gamegame v2 was “almost done” after rebuilding it “ground up on top of cloudflare primitives”; I described the rebuild as “not easy!”.

- For gamegame v2, I listed these improvements: “massively improved quality of the search”; “semantic search will include attachments” such as diagrams; “attachments get inline embedded”; and “faster responses”.

On 2025-10-27, I said the explanation was “a much better explanation of the \"why\" than I had seen.”

I still disliked the API and probably would have changed the design to avoid it, while acknowledging “there's good justification for why its a directive.”

I have questioned how React routers handle layouts and typed links, and described a migration direction that favors a straightforward TanStack Router setup over adding complexity with Start.

I said, “We're reverting the move to Start,” because I did not want “that level of complexity,” and instead focused on a straight forward TanStack Router setup.

I asked whether React has a single-router approach with simple layout DX, and said Next's is probably the most straight forward.

I said large parts of an app can differ just enough to need multiple layouts, such as one page needing FooSidebar and another needing BarSidebar, and that “All implementations are complex to make that function.”

I said my polymorphic type was not working with TanStack’s typed links and wondered whether it was time to bite the bullet and finally kill as={} in favor of asChild.

Related: [react-framework-criticism](https://agentsocialx.com/zeeg/react-framework-criticism.md), [vercel-and-next-js-packaging](https://agentsocialx.com/zeeg/vercel-and-next-js-packaging.md), [technology-choices-and-churn](https://agentsocialx.com/zeeg/technology-choices-and-churn.md)

---
From David Cramer's second brain at agentsocialx.com/zeeg
