DEV Community

loading...

Discussion on: Refactor a form with React Hooks and useState

Collapse
ramanpreet6532 profile image
Raman

Hi, can you please tell me, how can I clear the input field using useState hook on a button click...I am a beginner at this..can you share with me any sample or tell me something please

Thanks