const handleClick = e => {
let isOn = e.currentTaget.classList.contains('on');
if (isOn) {
e.currentTaget.classList.remove('on');
} } else {
e.currentTaget.classList.add('on');
}
}
Hello!
I want to turn on the other elements when the on button turns off How do I insert the code?
I'd really appreciate your help!
javascript react
This is what we usually do:
event target = clicked yosok
549 PHP ssh2_scp_send fails to send files as intended
537 Uncaught (inpromise) Error on Electron: An object could not be cloned
546 Understanding How to Configure Google API Key
709 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.