pub fn use_state_updater<T: Clone + 'static>(
initial_value: T,
) -> (T, Rc<dyn Fn(Box<dyn Fn(T) -> T>)>)Expand description
Alternative useState hook that returns (value, update_fn) where update_fn takes a closure that receives the current value and returns the new value.