leptos_use::math

Function use_or

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

Reactive OR condition.

§Demo

Link to Demo

§Usage

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

let a_or_b = use_or(a, b);