Skip to content

Instantly share code, notes, and snippets.

@robinheinze
Created July 25, 2019 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinheinze/4e8f1b4ced647e49d0ec6aef766d19cf to your computer and use it in GitHub Desktop.
Save robinheinze/4e8f1b4ced647e49d0ec6aef766d19cf to your computer and use it in GitHub Desktop.
Radio props
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