```
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);
```



});
  it('should control a value in reentrant events', () => {
    
    
    var inputEvent = document.createEvent('Event');
    inputEvent.initEvent('input', true, true);
    
    
    var changeEvent = document.createEvent('Event');
    changeEvent.initEvent('change', true, true);
    class ControlledInputs extends React.Component {
      state = {value: 'lion'};
      a = null;
      b = null;
      switchedFocus = false;
      change(newValue) {
        this.setState({value: newValue});
        
        
        
        this.a.dispatchEvent(changeEvent);
        this.b.focus();
      }
      blur(currentValue) {
        this.switchedFocus = true;
        
        
        this.setState({value: currentValue});
      }
      render() {