JSFiddle - React, Tailwind, and code Playground
by Ronny
HTML
<a href="#" id="first">foo</a>
<a href="#" id="second">bar</a>
JavaScript
// first
[].forEach.call(document.querySelectorAll('a'), function (link) {
console.log('first', link);
});