JSFiddle - React, Tailwind, and code Playground

HTML

<script>
var number=10000;
window.onload = function() { //is executed when the window finished loading
  document.getElementById('my-id').setAttribute('value', number);  //changes the value of the specified element
}
</script>

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