Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Hi there. I am the creator of Maple which is a fine-grained reactive web ui library in Rust and running in WASM. We would like to support SSR as a first-class citizen. There are however, a few questions related to design that are unanswered. Even if you have never used Maple before, I would love to hear your feedback about potential ergonomics around the proposed API.
I solved the SSR problem in my library mogwai using conditional compilation to include an encoding of the DOM element when compiled for non-wasm targets, which you can see here). The extra field ServerNode allows me to provide an html_string function on non-wasm targets. On wasm targets the html_string function is backed by the DOM element's outerHtml method.