JSFiddle - React, Tailwind, and code Playground
HTML
<input type="hidden" value="helloworld">
JavaScript
document.querySelector('input[type="hidden"]').removeAttribute("type");
<input type="hidden" value="helloworld">
document.querySelector('input[type="hidden"]').removeAttribute("type");