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



var type = this.props.type;
          var value = this.state.value;
          return <input type={type} value={value} onChange={this.onChange} />;
        }
      };
    }
    it('always sets the attribute when values change on text inputs', function() {
      var Input = getTestInput();
      var stub = ReactTestUtils.renderIntoDocument(<Input type="text" />);
      var node = ReactDOM.findDOMNode(stub);
      ReactTestUtils.Simulate.change(node, {target: {value: '2'}});
      expect(node.getAttribute('value')).toBe('2');
    });
    it('does not set the value attribute on number inputs if focused', () => {
      var Input = getTestInput();
      var stub = ReactTestUtils.renderIntoDocument(
        <Input type="number" value="1" />,
      );
      var node = ReactDOM.findDOMNode(stub);
      node.focus();
      ReactTestUtils.Simulate.change(node, {target: {value: '2'}});
      expect(node.getAttribute('value')).toBe('1');
    });
    it('sets the value attribute on number inputs on blur', () => {