macro_rules! with_reducer {
($ctx:expr, $action:expr, $handler:expr $(,)?) => { ... };
}Expand description
Binds an action to a reducer in one expression.
ⓘ
use fission::prelude::*;
let on_press = with_reducer!(ctx, Increment, on_increment);