JSFiddle - React, Tailwind, and code Playground

by Cal Francesco

HTML

<p>test</p>

JavaScript

[].slice.call(document.querySelectorAll('p')).forEach(function(x){x.addEventListener('click',function(){alert("click successful!")})})