# RadioGroup组合 - order: 1 RadioGroup 组合。 --- ````jsx var Radio = antd.Radio; var RadioGroup = antd.RadioGroup; var App = React.createClass({ getInitialState: function () { return { value: 'a' }; }, onChange(e) { console.log('radio checked:' + e.target.value); this.setState({ value: e.target.value }); }, render() { return
A B C D
你选中的: {this.state.value}
} }); React.render(, document.getElementById('components-radio-demo-radiogroup')); ````