Function leptos_use::math::use_and

source ·
pub fn use_and<S1, S2>(a: S1, b: S2) -> Signal<bool>
Expand description

Reactive AND condition.

§Demo

Link to Demo

§Usage

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

let a_and_b = use_and(a, b);