3 ms·
Assuming: 1. Everything user sees is from server 2. Templates/Views is function of state Server can generate UI with baked changes to state. URL parameters. Ge
by gcoda 9y ago
Assuming:
1. Everything user sees is from server
2. Templates/Views is function of state
Server can generate UI with baked changes to state. URL parameters. Generate html from received state by calling render function of clicked component and send just that components html.
If we had http header for that we can leverage http2 push and replace even components which state were changed as side effect.
React-Redux, Elm, Vuex doing this already. Just bake actions to urls and keep store on server.