I have enable mutilple check for radio button. But how to enable unCheck
<div id ="box"></div>
<script type="text/babel">
class Radio extends React.Component{
constructor(props) {
super(props);
this.state = {option: 'a'};
}
setRadio(e){
this.setState({option: e.target.value});
}
render(){
return(<div>
<div onChange={this.setRadio.bind(this)} >
<b>Select :</b> <br />
<input type="radio" value="a" name="a"/>a
<input type="radio" value="b" name="b"/>b
<input type="radio" value="c" name="c"/>c
<input type="radio" value="d" name="d"/>d
<input type="radio" value="e" name="e"/>e
</div>
</div>);
}
}
ReactDOM.render(<Radio /> , document.getElementById('box'));
</script>
I wasn't able to add unCheck option. I just need what should I add to the method setRadio(e) to enable uncheck. Thanks for help