```
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 update `defaultValue` for uncontrolled date/time input', () => {
    var container = document.createElement('div');
    var node = ReactDOM.render(
      <input type="date" defaultValue="1980-01-01" />,
      container,
    );
    expect(node.value).toBe('1980-01-01');
    ReactDOM.render(<input type="date" defaultValue="2000-01-01" />, container);
    expect(node.value).toBe('1980-01-01');
    expect(node.defaultValue).toBe('2000-01-01');
    ReactDOM.render(<input type="date" />, container);
  });
  it('should take `defaultValue` when changing to uncontrolled input', () => {
    var container = document.createElement('div');
    var node = ReactDOM.render(
      <input type="text" value="0" readOnly="true" />,
      container,
    );
    expect(node.value).toBe('0');
    ReactDOM.render(<input type="text" defaultValue="1" />, container);
    expect(node.value).toBe('0');
  });
  it('should render defaultValue for SSR', () => {
    var markup = ReactDOMServer.renderToString(
      <input type="text" defaultValue="1" />,
    );
    var div = document.createElement('div');
    div.innerHTML = markup;
    expect(div.firstChild.getAttribute('value')).toBe('1');
    expect(div.firstChild.getAttribute('defaultValue')).toBe(null);