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

Create a text node element

Example

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