leptos_use::math

Function use_not

Source
pub fn use_not<S>(a: S) -> Signal<bool>
where S: Into<MaybeSignal<bool>>,
Expand description

Reactive NOT condition.

§Demo

Link to Demo

§Usage

let (a, set_a) = create_signal(true);

let not_a = use_not(a);

See also

  • [use_and]
  • [use_or]