JSFiddle - React, Tailwind, and code Playground

HTML

<div data-role="dialog">    
                <div data-role="content" id = "test" data-theme="c">
                <a href="Link" data-role="button" data-theme="b" onClick = "doSomething();return true;" rel = "external">Text</a>
               <a href="#" data-role="button" data-rel="back" data-theme="c">Cancel</a>    
               </div>
          </div>

JavaScript

function doSomething(){
    alert('This a test');
}