JSFiddle - React, Tailwind, and code Playground
JavaScript
let URL = prompt('Insert URL', 'http://');
let newTab = window.open(URL);
newTab.location.href = url;
let URL = prompt('Insert URL', 'http://');
let newTab = window.open(URL);
newTab.location.href = url;