JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="my-button" value="Show text input">
<input type="text" id="my-input">

CSS

#my-input {
  visibility: hidden;
}

JavaScript

document.getElementById('my-button').onclick = function() {
	document.getElementById('my-input').style.visibility = 'visible';
}