JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" class="open-popup">Click ton open new window</a>

JavaScript

$('.open-popup').click(function(e) {
    e.preventDefault();
  var OpenWindow= window.open(this.href, '_blank', 'width=300,height=200');
var output = 'Hello, World! <p>Content in New window</p>';
    OpenWindow.document.write(output);
});