JSFiddle - React, Tailwind, and code Playground

HTML

<input id="text" type=text>
<button onClick="window.open(document.getElementById('text').value, '_blank');">URL In New Tab</button>