Function sauron_core::html::text

source ·
pub fn text<S, MSG>(s: S) -> Node<MSG>where
    S: ToString,
Expand description

Create a text node element

Example

use sauron::*;
let node: Node<()> = text("hi");