pub fn dyn_text<F, O>(&self, text: F) -> &Self
    where
        F: FnMut() -> O + 'static,
        O: AsRef<str> + 'static,
    {
        let memo = create_memo(text);

        self.dyn_child(move || View::new_node(G::text_node(memo.get().as_ref().as_ref())));

        self
    }
/// Adds a dynamic text node.
///
/// # Example
/// ```
/// # use sycamore::prelude::*;
/// # use sycamore::builder::html::*;
/// # fn _test<G: GenericNode>() -> View<G> {
/// let required = Signal::new(false);
///
/// h1()
///     .text("Email")
///     .dyn_text(
///         move || {
///             if *required.get() { " *" } else { "" }
///         }
///     ).build()
/// }
/// ```
Adds a dynamic text node.
Adds a dynamic text node .
pub fn dyn_text<F, O>(&self, text: F) -> &Self
    where
        F: FnMut() -> O + 'static,
        O: AsRef<str> + 'static,
    {
        let memo = create_memo(text);
        self.dyn_child(move || View::new_node(G::text_node(memo.get().as_ref().as_ref())));
        self
    }
pub fn dyn_text < F , O > ( & self , text : F ) -> & Self where F : FnMut ( ) -> O + ' static , O : AsRef < str > + ' static , { let memo = create_memo ( text ) ; self . dyn_child ( move | | View :: new_node ( G :: text_node ( memo . get ( ) . as_ref ( ) . as_ref ( ) ) ) ) ; self }
Adds a dynamic text node.
Adds a dynamic text node .
&self
text
F
example
None
use sycamore::prelude::*;
None
use sycamore::builder::html::*;
None
fn _test<g: genericnode>() -> view<g> {
let required = Signal::new(false).


let required = Signal :: new ( false ) .