help, i am stuck

cmuralisree

Chittoji Murali Sree Krishna

Posted on April 14, 2021

help, i am stuck
  1. when i use this in react its working only once in local server,
  2. but when i deploy it on gh-pages, its not at all working
  3. 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';
})
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
cmuralisree
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.

Related