DEV Community

Discussion on: How to add a dark mode to your React web app

Collapse
 
andres profile image
Andrés Pérez • Edited

Pst, I gave it a spin and implemented it using hooks, here's the comparison gist.github.com/Oxyrus/b4edab0372b... (doesn't include the fancy toggle because I was lazy 😆)

Collapse
 
thgh profile image
Thomas Ghysels

Cool, I would have used useLocalState from the use-hooks package.

Collapse
 
wchr profile image
Wachira

Nice 💯