Literally nobody asked for this, but here is sample code for a web app with server-side html rendering in Rust with Yew, client-side dom rendering in TypeScript with Preact, and fetch to let the two communicate.
The included minimal demo is a net server that generates random numbers based on a novel method where the generator has more bits of entropy depending on how much traffic the server is currently receiving