Function sauron::prelude::text

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

Create a text node element

§Example

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