Why dark mode? Most popular applications we use today have a dark mode. It is not a coincidence. Dark mode helps with reading on low-light settings. Now, I use dark mode in almost all apps that have it. It's easier for me to stare for long periods i...

Markdown supported · ⌘↵ to post
JOY SAM RAJ
Developer
I guess change this line
const [theme, setTheme] = useState(localStorage.getItem('theme'));Because while refreshes it overrides the local storage