© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
JOY SAM RAJ
Developer
I guess change this line
const [theme, setTheme] = useState(localStorage.getItem('theme'));
Because while refreshes it overrides the local storage