• This is like useState<boolean> but provides explicit methods to set the value. This either sets it to true or the initial state. If the intial state is true then this will always be true.

    Returns

    an array containing the signal value, a setter callback and a reset back to initial value callback

    Parameters

    • initial: boolean = false
    • signalCallback: Dispatch<boolean> = noop
    • resetCallback: Dispatch<boolean> = noop

    Returns [boolean, (() => void), (() => void)]

Generated using TypeDoc