Skip to content

React Dark State - Custom React hook for dark mode detection. Simplify dark mode implementation in React projects. ๐ŸŒ™

Notifications You must be signed in to change notification settings

ssakib4040/react-dark-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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
  )
}

About

React Dark State - Custom React hook for dark mode detection. Simplify dark mode implementation in React projects. ๐ŸŒ™

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published