export default class Request extends Component {
constructor() {
super();
this.state = {
checked: false
}
this.handleClick = this.handleClick.bind(this);
}
this.handleClick() {
this.setState({
checked: !this.state.checked
})
}
render() {
const {checked} = this.state
return (
<div class="block" onClick={ this.handleClick } role="button" tabIndex={ 0 }>
<input type="radio" name="radio" id="radio" checked={checked}/>
</div>
);
}
}