Function rs_web_component::define_element
source · pub fn define_element(name: String, constructor: fn() -> Box<dyn Component>)
Expand description
Defines a new custom element
§Arguments
name
- A name of a new custom elementconstructor
- Function/Closure which creates an instance of a custom element