top | item 45756345

(no title)

PebblesHD | 4 months ago

I have yet to reach the limits of doing a Vite create and installing react router myself for the several entirely client side apps we manage. It has sane build defaults and for whatever definition of ‘works’ is possible in JS, ‘just works’. If it becomes too complex for that basic setup it usually means we’ve over-complicated something.

Where we have a need for server side, nodejs just never felt natural for us so we stuck with java springboot or flask/fastapi as appropriate.

discuss

order

383toast|4 months ago

ever since react router got merged with remix to become react router v7, I looked around for simpler version, landed on Wouter which is fine.

culi|4 months ago

I'd love to hear more about what motivated the switch. All the additions to react-router are, afaict, opt-in. React-router has 3 "modes"[0] and the declarative mode seems pretty much exactly what the classic library is like with some extra components/features you don't have to use

Thought I've enjoyed the code-splitting and access to SPA/SSR/SSG/etc strategies that come with the "framework" mode

[0] https://reactrouter.com/start/modes

davedx|4 months ago

I’ve been using Wouter on multiple medium sized projects for 3-4 years now. I’m never going back to react-router if I can avoid it: a hellhole of API churn and self promotion

nozzlegear|4 months ago

I've been using wouter in all of my projects for years after being burned by some react router migration bullshit eons ago.

petralithic|4 months ago

TanStack is the sane option here, whether their router or their start product.

iamsaitam|4 months ago

wouter is great until you need hash routing and then it's shite.

davedx|4 months ago

I’m kind of agreed on this but — many times now I’ve also wanted static site components in my app too, and in a standard express+react app that gets awkward.

I think there must be a better way. I don’t think it’s next.js and I’m not convinced it’s Astro either. There’s still room for new ideas here, surprisingly