formspree-js icon indicating copy to clipboard operation
formspree-js copied to clipboard

[issue] Add the reset function to the docs

Open cbonaco1 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Formspree React Version

2.4.0

Formspree Core Version

n/a

Current Behavior

Please add information about the reset function to the @formspree/react documentation. I was just wrestling with a bug for some time, and knowing the reset function was exposed by useForm would have been a huge time saver. I only discovered it by looking into the codebase. Also wondering why the state can't be reset by default on a new form submission?

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

cbonaco1 avatar Nov 03 '22 17:11 cbonaco1

I had to dive into the codebase to find this out too. I think documentation could be improved.

cavellblood avatar Sep 12 '23 01:09 cavellblood