Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created April 2, 2018 02:28
Show Gist options
  • Save tkssharma/0267769d5c8e8d988b50c70374b49091 to your computer and use it in GitHub Desktop.
Save tkssharma/0267769d5c8e8d988b50c70374b49091 to your computer and use it in GitHub Desktop.
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