JSFiddle - React, Tailwind, and code Playground

by alnitak

HTML

<a href="http://www.google.com/" onclick="alert(this); console.dir(this); return false;"> Test Link </a>

JavaScript

$('[onclick]').each(function() {
    var handler = $(this).prop('onclick');
    $(this).removeProp('onclick');
    $(this).click(handler);
});