JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <p> this is paragraph 1</p>
    <p> this is paragraph 2</p>
    <p> this is paragraph 3</p>    
</html>

JavaScript

$(document).on("click", "p", function() {
        alert("Test");             
    });