---
order: 1
title: RadioGroup 组合
---
一组互斥的 Radio 配合使用。
````jsx
import { Radio } from 'antd';
const RadioGroup = Radio.Group;
const App = React.createClass({
getInitialState() {
return {
value: 1,
};
},
onChange(e) {
console.log('radio checked', e.target.value);
this.setState({
value: e.target.value,
});
},
render() {
return (
A
B
C
D
);
},
});
ReactDOM.render(, mountNode);
````