Deprecated
this useDarkMode's signature is deprecated, it now accepts an options object instead of multiple parameters.
import { useDarkMode } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";
Custom hook that returns the current state of the dark mode.
Examples
const { isDarkMode, toggle, enable, disable, set } = useDarkMode(false, 'my-key');
const { isDarkMode, toggle, enable, disable, set } = useDarkMode(false, 'my-key');