Search posts, tags, users, and pages
An Vo
Nice about the tricky thing that inside the handleClick function, the alert(theme) is "light" even though we've just setTheme("dark")
handleClick
setTheme("dark")
Sakshi Chaudhary
Thank you! glad you find it useful