next-era
Version:
Welcome to **Next Era**! A comprehensive library designed to supercharge your **Next.js** applications with powerful utilities and significant performance optimizations. Build faster, more efficient, and feature-rich Next.js projects with ease.
8 lines (7 loc) • 320 B
TypeScript
/**
* Hook to manage boolean state.
* @param defaultValue default value of the boolean state
* @returns boolean state, setTrue, setFalse, toggle, setValue
*/
export declare const useBool: (defaultValue?: boolean) => [boolean, () => void, () => void, () => void, (isToggle: boolean) => void];
export default useBool;