```
render () {
  <input type="number" value={this.props.value} />
}
```

for example, when the original value is '.98', we need format it to '0.98'. but it is not  take effect。

```javascript
class Test extends React.Component {
 state = {
    value: '.98',
  }
 changeValue = () => {
    alert(0.98);
    this.setState({
      value: '0.98',
    });
  }

 render() {
    return <div>
      <input type="number" value={this.state.value} />
      <button onClick={this.changeValue}>changeValue</button>
    </div>;
  }
}

ReactDOM.render(<Test />, mountNode);
```



? props.checked
        : props.defaultChecked,
      initialValue: props.value != null ? props.value : defaultValue,
      controlled: isControlled(props),
    };
  },
  updateWrapper: function(element: Element, props: Object) {
    var node = ((element: any): InputWithWrapperState);
    if (__DEV__) {
      var controlled = isControlled(props);
      if (
        !node._wrapperState.controlled &&
        controlled &&
        !didWarnUncontrolledToControlled
      ) {
        warning(
          false,
          'A component is changing an uncontrolled input of type %s to be controlled. ' +
            'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
            'Decide between using a controlled or uncontrolled input ' +
            'element for the lifetime of the component. More info: https:fb.me/react-controlled-components%s',
          props.type,
          getCurrentFiberStackAddendum(),
        );
        didWarnUncontrolledToControlled = true;
      }
      if (
        node._wrapperState.controlled &&
        !controlled &&
        !didWarnControlledToUncontrolled