Created
October 15, 2017 10:34
-
-
Save tkssharma/0f3bab9fec9e9a64c24ff2128b204f2d 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
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