tanstack router + tanstack start
Hi guys, I'm having lot of meetings with the CTO of my company to discuss the new tech stack for all our projects. Ours "go to" are:
- react query
- tanstack-table
We want 100% CSR(client side rendering for most of our projects/routes) and in the future migrate to SSR "some" routes/pages according if we need to improve SEO, loading speed etc.
I really want to use tanstack-router and in the future "tanstack start".
My question is, if we use tanstack-router now with vite. Will be a easy migration to tanstack-start? I mean, will be a vite plugin you add tanstack-start? Tanstack-start will use vite too?
Those are my main questions to avoid re-write our codebases. We want SEO and full control of our bundles. Also, we want to avoid NextJS, Remix, Gatsby. So, there are no good alternatives in the market, just tanstack-start. Finally, we dont want to use "RSC" because we have APIs and our backends are written and will be written in PHP. So, I dont see the benefit of pushing the frontend with React to SSR, that's why we want a CSR react framework as Tanstack start promotes in their docs ๐.
Any comments, advices? Thanks
8 Replies
optimistic-goldโข13mo ago
Tanstack-router will use vite too?it already does
metropolitan-bronzeOPโข13mo ago
My bad, I meant tanstack-start will use vite?
optimistic-goldโข13mo ago
yes!
optimistic-goldโข13mo ago
TanStack Start Overview | TanStack Router React Docs
TanStack Start is a full-stack React framework powered by TanStack Router. It provides a full-document SSR, streaming, server functions, bundling, and more, powered by TanStack Router, Vinxi, and Vite. It is ready to deploy to your favorite hosting provider!
Router or Start?
optimistic-goldโข13mo ago
It provides a full-document SSR, streaming, server functions, bundling, and more, powered by TanStack Router, Vinxi, and Vite.
optimistic-goldโข13mo ago
checkout the examples, e.g. https://github.com/TanStack/router/blob/main/examples/react/start-basic/app.config.ts
GitHub
router/examples/react/start-basic/app.config.ts at main ยท TanStack/...
๐ค Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
metropolitan-bronzeOPโข13mo ago
Thanks so much. My final question is, any challenges of SEO that are you guys are dealing with tanstack-start? Because we have SPAs (big ones written in Gatsby) and they have good SEO just with react-helmet. I reckon we won't face any other issue with SEO if we use tanstack-start. Any thoughts?
optimistic-goldโข13mo ago
that's a really broad question...
If you can narrow this down to specific topics, it would be best to post in https://discord.com/channels/719702312431386674/1240861643462934568