Function use_and

Source
pub fn use_and<S1, S2>(a: S1, b: S2) -> Signal<bool>
where S1: Into<Signal<bool>>, S2: Into<Signal<bool>>,
Expand description

Reactive AND condition.

§Demo

Link to Demo

§Usage

let (a, set_a) = signal(true);
let (b, set_b) = signal(false);

let a_and_b = use_and(a, b);