2.0.2 • Published 7 months ago

react-dark-state v2.0.2

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

React Dark State

React Dark State a custom react hook to detect dark mode

Getting Started

Install package with npm

npm install react-dark-state

or with yarn

yarn add react-dark-state

Usage

import React from "react";
import useDarkState from "react-dark-state";

function App(){
  const darkState = useDarkState();

  return(
    <h1>Current State: { darkState }</h1>
    // Current State: dark/light
  )
}