create_reactive_text_node

Function create_reactive_text_node 

Source
pub fn create_reactive_text_node(
    source: impl FnMut() -> String + 'static,
) -> Text
Expand description

Creates a text node that reactively updates when its source changes.

ยงArguments

  • source: A closure that returns the string to be displayed. This closure is tracked by the reactive system.