title: Clear form input field values after submitting in react js with ant-design
body: <p>I was created a registration page using react. There I have used this following registration form. <a href="https://ant.design/components/form" rel="noreferrer">https://ant.design/components/form</a>. All the validation were handled properly and after successful attempt user can register to the system. Only problem I have faced is, unable to clear the form input field values after the submission. </p>
  
  <p>I have implemented a method to clear the form field values to null. But it was not working. And I tried out previous similar questions in stackoverflow, but still couldn't get a workable one for me. Reason for that may be since I am using the ant design template.</p>
  
  <pre><code>this.setState({
          confirmDirty: false,
          autoCompleteResult: [],
          userName: '',
          email: '',
          experience: [],
          password: ''
  })
  </code></pre>
  
  <p>Above code is to clear the input values. But it was not working and the all the form input fields values remained save. Below is the part of the registration form code.</p>
  
  <pre><code>class RegistrationForm extends React.Component {
  state = {
      confirmDirty: false,
      autoCompleteResult: [],
      userName: '',
      email: '',
      experience: [],
      password: ''
  };
  //below form is inside the render method and return 
  &lt;Form onSubmit={this.handleSubmit}&gt;
    &lt;FormItem
      {...formItemLayout}
      label="E-mail"
    &gt;
    {getFieldDecorator('email', {
       rules: [{
          type: 'email', message: 'The input is not valid E-mail!',
       }, {
          required: true, message: 'Please input your E-mail!',
       }],
       })(
          &lt;Input /&gt;
       )}
    &lt;/FormItem&gt;
  &lt;/Form&gt;
    handleSubmit = (e) =&gt; {
        e.preventDefault();
        this.props.form.validateFieldsAndScroll((err, values) =&gt; {
          if (!err) {
            //submission done
            //then execute the above code which I mentioned previously in the question, to reset the input fields value
  
          }
        });
    }
    }
  </code></pre>
  
  <p>Where I could get wrong and how can I resolve this?</p>