2
const [value, setValue] = React.useState('China');
10
const onChange = (val) => {
15
<RadioGroup value={value} onChange={onChange}>
16
<Radio label="China" value="China" />
17
<Radio label="USA" value="USA" />
20
<Button onClick={toggle}>Switch</Button>