JSFiddle - React, Tailwind, and code Playground
by cm0s
HTML
<script src="http://code.jquery.com/jquery-2.1.1.js"></script>
<a target="_self" href="">Reload this page</a>
<div class="counter"></div>
JavaScript
window.counter = 0;
var incrementCounter = function (event) {
window.counter++;
$('.counter').html(window.counter);
};
$(parent.window).off('click');
//We set the click event without the use of jQuery
parent.window.onclick = incrementCounter;