use_reactive

Function use_reactive 

Source
pub fn use_reactive<T>(value: &T) -> State<T>
where T: 'static + Clone + PartialEq,
Expand description

Allows converting a &T into a State<T> so that we can pass this value around without cloning it multiple times.