JSFiddle - React, Tailwind, and code Playground

HTML

<div id="zIndexTest" style="z-index: 5;">
</div>

JavaScript

var zIndexTest = document.getElementById('zIndexTest')
console.log(typeof zIndexTest.style.zIndex);