React refs in a loop
What is a ref? There's a clue in the name: it references an element. If you have a button in HTML with a class of myElement, then you can refer to it in JavaScript like this: const myElement = document.querySelector('.myElement'); myElement.addEventL...
Mar 13, 20215 min read71