Created
October 15, 2017 10:41
-
-
Save tkssharma/1a456bb4f44bd81cbc2b22c3b6479d7d 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
function Quiz(props) { | |
function renderAnswerOptions(key,index) { | |
return ( | |
<AnswerOption | |
index ={index} | |
key={key.content} | |
answerContent={key.content} | |
answerType={key.type} | |
answer={props.answer} | |
questionId={props.questionId} | |
selectedAnswer={props.selectedAnswer} | |
onAnswerSelected={props.onAnswerSelected} | |
/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment