Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created June 23, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wozozo/44e9f0956df86ddfd91e to your computer and use it in GitHub Desktop.
Save wozozo/44e9f0956df86ddfd91e to your computer and use it in GitHub Desktop.
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