I have implemented a dark mode application for my web application. While performing operations in the application, sometimes the dark mode button loses its activity and does not work even though I click it. what could be the reason for this?
const toggleNightMode = () => {
document.body.classList.toggle('body--night-mode')
…
Top comments (0)