leptos_use

Function use_to_string

Source
pub fn use_to_string<V, T>(value: V) -> Signal<String>
where V: Into<MaybeSignal<T>>, T: ToString + 'static,
Expand description

Reactive ToString::to_string().

ยงUsage

let (number, set_number) = create_signal(3.14_f64);
let str = use_to_string::<_, f64>(number);