Function dioxus_core::nodebuilder::text[][src]

pub fn text<'a>(contents: &'a str) -> VNode<'a>

Construct a text VNode.

This is dioxus’s virtual DOM equivalent of document.createTextVNode.

Example

use dioxus::builder::*;

let my_text = text("hello, dioxus!");