Comment vider le champ d'entrée dans la réaction
event.target.value = ''
//grab the target input and set it empty. you can use it in the onclick
event.target.value = ''
//grab the target input and set it empty. you can use it in the onclick