JSFiddle - React, Tailwind, and code Playground
HTML
<div><button>Test</button></div>
<div><button>Test 2</button></div>
JavaScript
d3.selectAll('div').selectAll('button')
.on('click', function() {
alert([].slice.call(arguments));
console.log('clicked!');
}, true);