A small package containing a dark mode react hook based upon a css listener.
npm install use-dark-mode-tsExample usage:
``
import { useDarkMode } from 'use-dark-mode-ts';
const ExampleComponent = () => {
const isDarkMode = useDarkMode();
return (
<>
{
isDarkMode
? (