Availity / availity-reactstrap-validation

Easy to use React validation components compatible for reactstrap.
https://availity.github.io/availity-reactstrap-validation/
MIT License
191 stars 70 forks source link

How to Reset the form after submit (w/ React Hooks) #200

Closed JanderSilv closed 3 years ago

JanderSilv commented 4 years ago

I've seen the example of how to reset the form with classess and "ref" but I would like to know how to do it with React Hooks.

nikkhielseath commented 3 years ago

Greetings @JanderSilv , I am not sure if I understand your question. could you please elaborate it? Also, if by "ref" you mean useRef hook then, I think, you already have the ~question~ answer to your problem.

Regards SNikhill

JanderSilv commented 3 years ago

Hello @SNikhill, thanks for responding. Actually I don't remember why I had that doubt in that time, probably I didn't know how to use the useRef's hook yet. But the problem was solved, the project already finished and this issue can be closed. Thanks again.

nikkhielseath commented 3 years ago

Greetings @JanderSilv, Good to hear that your problem has been solved. You will have to close the issue from your end.

Regards SNikhill