I have two radio buttons and I want to get value for checked
<RadioButton ref="color-red" name="color" value="red" defaultChecked="true" label="Red" />
<RadioButton ref="color-green" name="color" value="green" label="Green" />
Currently I am doing
refs['color-red'].refs.radioButton.getDOMNode().checked
But I think it's complicated
I think solution should be something like
I have two radio buttons and I want to get value for checked
Currently I am doing
But I think it's complicated
I think solution should be something like