demo: fix console warning

This commit is contained in:
afc163 2018-04-15 15:13:59 +08:00
parent 4486c569f2
commit 9b64a778d0

View File

@ -125,8 +125,8 @@ class App extends React.Component {
<div> <div>
<div className="change-locale"> <div className="change-locale">
<span style={{ marginRight: 16 }}>Change locale of components: </span> <span style={{ marginRight: 16 }}>Change locale of components: </span>
<Radio.Group defaultValue={null} onChange={this.changeLocale}> <Radio.Group defaultValue={undefined} onChange={this.changeLocale}>
<Radio.Button key="en" value={null}>English</Radio.Button> <Radio.Button key="en" value={undefined}>English</Radio.Button>
<Radio.Button key="cn" value={zhCN}>中文</Radio.Button> <Radio.Button key="cn" value={zhCN}>中文</Radio.Button>
</Radio.Group> </Radio.Group>
</div> </div>