JSFiddle - React, Tailwind, and code Playground
HTML
<div style="display: none">
<input type="text" id="myInput" value="5">
</div>
JavaScript
var parentElem = document.getElementById('myInput').parentElement;
console.log(window.getComputedStyle(parentElem, null).display)