Trait leptos::html::ElementDescriptor
source · pub trait ElementDescriptor: ElementDescriptorBounds {
// Required methods
fn name(&self) -> Cow<'static, str>;
fn hydration_id(&self) -> &HydrationKey;
// Provided method
fn is_void(&self) -> bool { ... }
}
Expand description
Trait which allows creating an element tag.
Required Methods§
sourcefn hydration_id(&self) -> &HydrationKey
fn hydration_id(&self) -> &HydrationKey
A unique id
that should be generated for each new instance of
this element, and be consistent for both SSR and CSR.