Crate sycamore_web
source ·Expand description
Web renderer for the Sycamore UI framework.
Sycamore on its own is a backend-agnostic UI framework. This crate provides web support to
Sycamore. With this crate, it is possible to render Sycamore views to the DOM (using
DomNode), “hydrate” existing DOM nodes (using [HydrateNode]), or render a static string
(using [SsrNode]).
This crate is re-exported in the sycamore crate. It is recommended to use that instead of
using this crate directly.
Structs
- Rendering backend for the DOM.
Traits
- Trait that is implemented by all
GenericNodebackends that render to HTML.
Functions
- Queue up a callback to be executed when the component is mounted.
- Render a
Viewunder aparentnode, in a way that can be cleaned up. This function is intended to be used for injecting an ephemeral sycamore view into a non-sycamore app (for example, a file upload modal where you want to cancel the upload if the modal is closed).