Tony Sullivan



The idea of a JS framework based on Finite State Machines got me thinking

Its really interesting to see JS frameworks shift back towards server rendering.

What if we leaning into web components and treating the DOM as our state?

Interactivity is managed by custom element attributes.

Site logic might boil down to really thin event handlers that querySelect()s a node and toggles an attribute.

This would leave a lot of state logic we’re used to today without a home…

Have state that doesn’t make sense in the DOM? It belongs on the server.

HTML partials would be really interesting here. Leave complex business logic on the server, only asking the browser for enough resources to handle basic user interactivity



1 share

It's definitely not a new idea, but worth dusting off now that we aren't trying to render the entire world in a SPA Server-rendered HTML partials + using the DOM as an Object Model instead of a JS app serialization format sure is compelling
TonySull TonySull
Combine that with streaming and loading what you need on demand.
Juho Vepsäläinen Juho Vepsäläinen