Chittoji Murali Sree Krishna
Posted on April 14, 2021
- when i use this in react its working only once in local server,
- but when i deploy it on gh-pages, its not at all working
- is there any other way of handling this in react?
const close = document.querySelectorAll('.close');
for(var i=0; i<close.length; i++){
close[i].addEventListener('click', function(){
this.parentElement.parentElement.style.display = 'none';
})
}
💖 💪 🙅 🚩
Chittoji Murali Sree Krishna
Posted on April 14, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.