import Radio from '..';
import React from 'react';
import ReactDOM from 'react-dom';
const RadioGroup = Radio.Group;
class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            value: 'orange',
        };
        this.onChange = this.onChange.bind(this);
    }
    onChange(value) {
        this.setState({
            value,
        });
    }
    render() {
        return (React.createElement("div", null,
            React.createElement("span", { style: { fontSize: 14 } },
                React.createElement("label", { id: "groupId" }, "Choose fruit: ")),
            React.createElement("br", null),
            React.createElement("br", null),
            React.createElement(RadioGroup, { value: this.state.value, onChange: this.onChange, "aria-labelledby": "groupId" },
                React.createElement(Radio, { id: "apple", value: "apple" }, "Apple"),
                React.createElement(Radio, { id: "watermelon", value: "watermelon" }, "Watermelon"),
                React.createElement(Radio, { id: "orange", value: "orange" }, "Orange"))));
    }
}
ReactDOM.render(React.createElement(App, null), document.getElementById('radio-demo-2'));
