dark-mode-hook

0.1.3 • Public • Published

dark-mode-hook

React Hook to switch to dark mode if the user has requested the system use a light or dark color theme.

Setup

npm install dark-mode-hook

Usage

Replace ReactDOM.render(<App />, document.getElementById("root"))

in your index.js with

ReactDOM.render(<AppWithTheme />, document.getElementById("root"));

Git Repository

https://github.com/NorthJaw/dark-mode-hook

/dark-mode-hook/

    Package Sidebar

    Install

    npm i dark-mode-hook

    Weekly Downloads

    5

    Version

    0.1.3

    License

    none

    Unpacked Size

    2.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • northjaw