use_reactive

Function use_reactive 

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

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