use_and
Reactive AND
condition.
Demo
Usage
use leptos::*;
use leptos_use::math::use_and;
#[component]
fn Demo() -> impl IntoView {
let (a, set_a) = create_signal(true);
let (b, set_b) = create_signal(false);
let a_and_b = use_and(a, b);
view! { }
}
Feature
This function is only available if the crate feature
math
is enabled