pub trait Html: GenericNode<EventType = Event, PropertyType = JsValue> {
const IS_BROWSER: bool;
}
Expand description
Trait that is implemented by all [GenericNode
] backends that render to HTML.
Required Associated Constants
const IS_BROWSER: bool
const IS_BROWSER: bool
A boolean indicating whether this node is rendered in a browser context.
A value of false
does not necessarily mean that it is not being rendered in WASM or even
in the browser. It only means that it does not create DOM nodes.