donavon / use-dark-mode

A custom React Hook to help you implement a "dark mode" component.
MIT License
1.28k stars 100 forks source link

redux? context? #57

Open jamesryan-dev opened 3 years ago

jamesryan-dev commented 3 years ago

not so much an issue but wondering if anyone has a spinning example with this utilised?

Trying to access this global state but only className seems to change on body, no prop or state.. would be good to have something like this globally accessible