Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
render() {
const { id, label, inputs } = this.props;
return (
<div>
this.props.inputs.values.map((value) => {
let defaultChecked = (value == inputs.defaultCheckedValue);
return (
<label className="radio-inline">
<input type="radio" ref={id + value} name={id} value={value} defaultChecked={defaultChecked}/>
{value}
</label>
)
})
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.