Skip to content

Commit

Permalink
QuizQuestionButton
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryhxu committed Jan 9, 2019
1 parent 5ef330f commit f421c00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QuizQuestion.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react'
import QuizQuestionButton from './QuizQuestionButton.js'

class QuizQuestion extends Component {

Expand All @@ -10,7 +11,7 @@ class QuizQuestion extends Component {
</section>
<section className="buttons">
<ul>
<li>{this.props.quiz_question.answer_options[0]}</li>
<QuizQuestionButton button_text={this.props.quiz_question.answer_options[0]}></QuizQuestionButton>
</ul>
</section>
</main>
Expand Down
13 changes: 13 additions & 0 deletions src/QuizQuestionButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React, { Component } from 'react'

class QuizQuestionButton extends Component {

render(){
return (
<li><button>{this.props.button_text}</button></li>
)

}
}

export default QuizQuestionButton

0 comments on commit f421c00

Please sign in to comment.