JSFiddle - React, Tailwind, and code Playground

by kiokotzu

HTML

<a href="https://twitter.com/share?text=heyy&via=tomalo&url=https://dev.twitter.com" 
    class="twitter" 
    target="_blank">tomalo</a>

JavaScript

$(".twitter").click(function(e) {
    e.preventDefault();
    var href = $(e.target).attr('href');
    window.open(href, "tweet", "height=300,width=550,resizable=1") 
});