useTheme
Combines the stored theme choice with the system preference, follows system changes live without a reload, and reflects the result onto the document through the theme source.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useTheme } from "@mapcairn/map";
function useTheme(): UseTheme;
Returns
UseTheme