How can I clear the search input on a submit in react?

Can’t for the life of me work out how to do this, looked everywhere. I simply just want it so that when I click the submit button on my SearchBox component that whatever text has been entered will be removed on click/touch of that button. How do I do this?

Hi! Could you provide information about what Algolia package you’re referring to? Thank you!