title: how to set Input value in formField ReactJs
body: <p>i cannot able to set value to the Inputfield in Form. below is my code. even i tried to give direct value too like in <code>value='ABC'</code> in input element. but no luck. when i tried to display value outside Form Tag like  </p>
  
  <pre><code>&lt;h1&gt;{this.state.company.companyCode}&lt;/h1&gt;
  </code></pre>
  
  <p>this shows value. but not inside Form.</p>
  
  <pre><code>    class UpdateCompany extends Component {
  
          constructor(props) {
              super(props);
              this.state = {
              companycode: { value: ''},
              company: ''
              };
              this.loadCompanydetail = this.loadCompanydetail.bind(this);        
          }
  
          loadCompanydetail(companyid) {
              GetCompanyById(companyid)
              .then(response =&gt; {
                  this.setState({
                      company: response
                  });
              }).catch(error =&gt; {
                  if(error.status === 404) {
                      this.setState({
                          notFound: true,
                          isLoading: false
                      });
                  } else {
                      this.setState({
                          serverError: true,
                          isLoading: false
                      });        
                  }
              });        
          }
  
          componentDidMount(){        
              const companyid =this.props.match.params.companyId;
              this.loadCompanydetail(companyid);
          }
  
          render() {
              const { getFieldDecorator } = this.props.form
  
              return (
                      &lt;h1 className="page-title"&gt;Edit Company - {this.state.company.companyCode}&lt;/h1&gt;
  
                          &lt;Form&gt;
                              &lt;Form.Item label="Company Code"&gt;
                                  {getFieldDecorator('companycode', {
                                      rules: [
                                        {
                                          required: true,
                                          message: 'Please enter Code',
                                          max: 3,
                                        },
                                      ],
                                    })(&lt;Input name="companycode" value={this.state.company.companyCode} /&gt;)}
                              &lt;/Form.Item&gt;
                              &lt;Form.Item wrapperCol={{ span: 12, offset: 6 }}&gt;
                                  &lt;Button type="primary" 
                                      htmlType="submit" 
                                      size="large"&gt;Submit&lt;/Button&gt;
                              &lt;/Form.Item&gt;
                          &lt;/Form&gt;
              );
          }
      }
  
  
  </code></pre>