Resets the values of the uncontrolled fields of a form to their initial values.
Note that Form.reset() will not affect controlled fields. To reset them use Form.onReset callback method handler, which is called after Form.reset() is finished.
Example
Submit callback handlers
import React from'react'import { Form } from'react-advanced-form'import { Input } from'react-advanced-form-addons'exportdefaultclassExampleextendsReact.Component {handleSubmitted= ({ res, fields, form }) => {form.reset() // resets "username" field to "admin" }render() {return ( <FormonSubmitted={this.handleSubmitted}> <Inputname="username"initialValue="admin" /> </Form> ) }}