Skip to content

Commit

Permalink
Completed module
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnson committed Jun 15, 2020
1 parent dd41b66 commit 4de6af6
Show file tree
Hide file tree
Showing 2 changed files with 16 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 {
render (props) {
Expand All @@ -9,7 +10,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]}/>
</ul>
</section>
</main>
Expand Down
14 changes: 14 additions & 0 deletions src/QuizQuestionButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { Component } from 'react'
import QuizQuestion from './QuizQuestion'

class QuizQuestionButton extends Component {
render(){
return (
<li>
<button>{this.props.button_text}</button>
</li>
)
}
}

export default QuizQuestionButton

0 comments on commit 4de6af6

Please sign in to comment.