(The use case for this is pretty neat: keep your interface state in custom state class instances persisted in session objects and, using the Streaming HTML workflow*, send back pieces of the interface that take those state objects as their only prop. Quite a neat separation of concerns and state is maintained only on the server in those objects.)
* https://ar.al/2024/03/08/streaming-html/
#Kitten #SmallWeb #state #sessions #StreamingHTML #web #dev #html #JavaScript #NodeJS #WebSockets #htmx #hypermedia