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



throw new Error(
          `defaultValue was assigned ${value}, but it did not change!`,
        );
      },
    });
    component.forceUpdate();
  });
  it('should display "true" for `defaultValue` of `true`', () => {
    var stub = <input type="text" defaultValue={true} />;
    stub = ReactTestUtils.renderIntoDocument(stub);
    var node = ReactDOM.findDOMNode(stub);
    expect(node.value).toBe('true');
  });
  it('should display "false" for `defaultValue` of `false`', () => {
    var stub = <input type="text" defaultValue={false} />;
    stub = ReactTestUtils.renderIntoDocument(stub);
    var node = ReactDOM.findDOMNode(stub);
    expect(node.value).toBe('false');
  });
  it('should update `defaultValue` for uncontrolled input', () => {
    var container = document.createElement('div');
    var node = ReactDOM.render(
      <input type="text" defaultValue="0" />,
      container,
    );
    expect(node.value).toBe('0');
    ReactDOM.render(<input type="text" defaultValue="1" />, container);
    expect(node.value).toBe('0');
    expect(node.defaultValue).toBe('1');
  });