I’m working in ionic4 REACT JS and after a search occurs I want to set focus back in the search bar, at the end. What’s the strategy to do this in React? I see the docs mention a “signature” of setFocus() => Promise but am not sure what that means and there’s no sample code for react that I could find.
Note: in general I’m not sure how to call the Methods I see listed in the ionic docs within React. plain JS looks like jquery select an element then add an event listener. But presuming there’s a more elegant React way. Any help appreciated.