HTML Partials and Server Reducers: An Alternative to React Spas

4 kamilchm 1 8/23/2025, 2:38:09 PM cimatic.io ↗

Comments (1)

kamilchm · 4h ago
Implementation story of how we expanded Server-Side Rendering to handle fine-grained user interactions on the server. The approach combines React's useReducer mental model with server authority - HTML fragments with embedded state that flow from server to browser.

Key Features:

- No hydration, no client-side state stores

- Time-travel debugging via HTTP capture/replay

- Framework-agnostic (works with any backend)

How it works:

- HTML partials with embedded state flow from server to browser

- User interactions send typed actions to server (like Redux actions)

- Server runs reducers and returns updated HTML fragments

- Browser swaps DOM elements - instant updates, no re-rendering

Perfect for Admin dashboards, real-time status widgets, B2B applications, content management systems where server owns the data. Most business applications don't need React SPA complexity. This delivers responsive UIs with 10x less complexity.