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...
blog.nicm42.me.uk5 min read