Can you please tell me what am I doing wrong ? I have btn. I select this btn by id and I would like to massage it during processing. I am getting error. Object is possibly 'null'
<button className='btn btn-primary rounded-0' id='loadBtn'>Upload Image</button>
in js, or in react I would do this way, but in typescript is red underline.
document.getElementById('loadBtn').textContent = 'Processing...'