I am trying to set the focus on my React page but it doesn't work because the component updates which I think overrides the componentDidUpdate
.
is there another way to do this?
this is the code I normally use to focus
document.querySelector("#input-box").focus();