Search posts, tags, users, and pages
Juan Alvarez
Frontend web developer
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...
JOY SAM RAJ
Developer
I guess change this line
const [theme, setTheme] = useState(localStorage.getItem('theme'));
Because while refreshes it overrides the local storage
Shantun Parmar
Software Engineer
very amazing article
Thank you, Shantun. I'm glad you enjoyed it ๐
JOY SAM RAJ
Developer
I guess change this line
const [theme, setTheme] = useState(localStorage.getItem('theme'));Because while refreshes it overrides the local storage