code style update

This commit is contained in:
afc163 2015-08-17 17:03:16 +08:00
parent 3922656566
commit fab3280ed2

View File

@ -23,7 +23,7 @@ var App = React.createClass({
}); });
}, },
render() { render() {
return<div> return <div>
<RadioGroup onChange={this.onChange} value={this.state.value}> <RadioGroup onChange={this.onChange} value={this.state.value}>
<Radio value="a">A</Radio> <Radio value="a">A</Radio>
<Radio value="b">B</Radio> <Radio value="b">B</Radio>
@ -31,7 +31,7 @@ var App = React.createClass({
<Radio value="d">D</Radio> <Radio value="d">D</Radio>
</RadioGroup> </RadioGroup>
<div style={{marginTop: 20}}>你选中的: {this.state.value}</div> <div style={{marginTop: 20}}>你选中的: {this.state.value}</div>
</div> </div>;
} }
}); });
React.render(<App />, document.getElementById('components-radio-demo-radiogroup')); React.render(<App />, document.getElementById('components-radio-demo-radiogroup'));