What i have in my project is a date picker with a reset button next to it, after user select date from date picker, the date picker will show the selected date. See this image if you have dont get it yet
And what i want is to reset the date value back to this by clicking reset button.
And here is my code
I did setting value back to null using useState hook onClick the button, using useRef hook, but nothing works. Any help?
https://stackoverflow.com/questions/67443988/reset-input-type-date-value-reactjs May 08, 2021 at 12:06PM
没有评论:
发表评论