- useBoolean(initialState?): readonly [boolean, {
off: (() => void);
on: (() => void);
toggle: (() => void);
}] Parameters
- initialState: InitialStateType = false
Returns readonly [boolean, {
off: (() => void);
on: (() => void);
toggle: (() => void);
}]