Created
September 9, 2017 13:04
-
-
Save DZuz14/85bde4685ebda40369c9b715fd67918a to your computer and use it in GitHub Desktop.
SurveyRow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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