formspree / formspree-js

The fastest way to hook up a React form
https://formspree.io/javascript
MIT License
62 stars 12 forks source link

[issue] Add the reset function to the docs #20

Open cbonaco1 opened 1 year ago

cbonaco1 commented 1 year ago

Is there an existing issue for this?

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

cavellblood commented 12 months ago

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