[][src]Function sauron_core::html::html_element

pub fn html_element<MSG>(
    tag: &'static str,
    attrs: Vec<Attribute<MSG>>,
    children: Vec<Node<MSG>>
) -> Node<MSG>

creates an html element, where the first argument: tag is the html element tag. Example:

This example is not tested
html_element("div", vec![class("container")], vec![])