Created
July 25, 2019 20:17
-
-
Save robinheinze/4e8f1b4ced647e49d0ec6aef766d19cf to your computer and use it in GitHub Desktop.
Radio props
This file contains 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
get radioProps() { | |
const allAnswers = self.incorrectAnswers.concat([self.correctAnswer]) | |
const radioProps = allAnswers.map(answer => ({ label: answer, value: answer })) | |
return shuffle(radioProps) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment