Skip to content

Instantly share code, notes, and snippets.

@nackjicholson
Created January 14, 2016 19:08
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 nackjicholson/d26a0c87f3bbc8c4cfbc to your computer and use it in GitHub Desktop.
Save nackjicholson/d26a0c87f3bbc8c4cfbc to your computer and use it in GitHub Desktop.
export default function statelessRadio(React) {
return function StatelessRadio(props) {
return (
<div id={props.baseId}>
<p id={`${props.baseId}__title`}>{props.titleText}</p>
{props.inputs.map((inputItem) => {
return (
<div>
<input name={props.baseId} value={inputItem.value} />
<label>{inputItem.label}</label>
</div>
);
})}
</div>
);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment