JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html>
<head>
<script type='text/javascript'>
function setupDiv() {
document.getElementById('div')
.setAttribute('style'
, 'position: absolute; top: 30px; left: 0px; width: '
+window.innerWidth +'px; height: '
+window.innerHeight+'px; border: 1px solid #ff0000');
}
window.onload = setupDiv;
</script>
</head>
<body>
<div id='div'>
</div>
</body>
</html>