Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created October 15, 2017 10:34
Show Gist options
  • Save tkssharma/0f3bab9fec9e9a64c24ff2128b204f2d to your computer and use it in GitHub Desktop.
Save tkssharma/0f3bab9fec9e9a64c24ff2128b204f2d to your computer and use it in GitHub Desktop.
class App extends Component {
constructor(props) {
super(props);
this.state = {
counter: 0,
questionId: 1,
question: '',
answerOptions: [],
allQuestions : [],
answer: '',
selectedAnswers : {},
result: ''
};
this.setNextQuestion = this.setNextQuestion.bind(this);
this.setPreviousQuestion = this.setPreviousQuestion.bind(this);
this.handleAnswerSelected = this.handleAnswerSelected.bind(this);
this.viewreults = this.viewreults.bind(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment