Skip to content

Instantly share code, notes, and snippets.

@DZuz14
Created September 9, 2017 13:04
Show Gist options
  • Save DZuz14/85bde4685ebda40369c9b715fd67918a to your computer and use it in GitHub Desktop.
Save DZuz14/85bde4685ebda40369c9b715fd67918a to your computer and use it in GitHub Desktop.
SurveyRow
/**
* Renders an individual question row. Each SurveyRow contains the questions text
* and contains a Controls component as one of its children.
*/
const SurveyRow = ({text, id, increment, decrement, count}) => {
return (
<div className="survey-row">
<div className="text">
<div className="content">
{text}
</div>
</div>
<Controls id={id} increment={increment} decrement={decrement} count={count} />
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment