Created
April 2, 2018 02:28
-
-
Save tkssharma/0267769d5c8e8d988b50c70374b49091 to your computer and use it in GitHub Desktop.
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
return ( | |
<div key={props.questionId} className="quiz-story"> | |
<QuestionCount counter={props.counter} viewreults={props.viewreults} | |
counter={props.questionId} | |
total={props.questionTotal} | |
/> | |
<Question content={props.question} /> | |
<ul className="answerOptions"> | |
{props.answerOptions.map(renderAnswerOptions)} | |
</ul> | |
<div className="bottom-footer" > | |
{props.counter > 0 ? (<button className="Previous-btn" onClick={props.setPreviousQuestion} >Previous</button>) : (<div></div>)} | |
{props.counter < 4 ? (<button className="next-btn" onClick={props.setNextQuestion} >Next</button>) : (<div></div>)} | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment