slate-devtools
Version:
`slate-devtools` as name suggests it is devtool for [slatejs](https://github.com/ianstormtaylor/slate) which will assist you in debugging the code
6 lines • 347 B
TypeScript
/// <reference types="react" />
/**
* Toggle the state when clicked
*/
export declare const useToggleOnClick: <T extends HTMLElement>(defaultState: boolean) => [boolean, (e: import("react").MouseEvent<T, MouseEvent>) => void, import("react").Dispatch<import("react").SetStateAction<boolean>>];
//# sourceMappingURL=useToggleOnClick.d.ts.map