text

Function 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");