fragment

Quick thoughts on Next.js Server Actions

March 17, 2024 (2y ago)

I've been using Server Actions in Next.js for a few months now, and I can't shake the feeling that we've come full circle back to PHP form processing.

But it's PHP with:

  • Strong typing via TypeScript
  • Colocation of UI and mutation logic
  • Seamless progressive enhancement

It's a good tradeoff, but it definitely requires unlearning some SPA habits.