-
Notifications
You must be signed in to change notification settings - Fork 385
/
Copy pathQuiz.js
34 lines (30 loc) · 800 Bytes
/
Quiz.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react'
export default function Quiz(props) {
return (
<div id="wrapper">
{
// quiz already in state? Let's use that, otherwise render "Loading next quiz..."
true ? (
<>
<h2>What is a closure?</h2>
<div id="quizAnswers">
<div className="answer selected">
A function
<button>
SELECTED
</button>
</div>
<div className="answer">
An elephant
<button>
Select
</button>
</div>
</div>
<button id="submitAnswerBtn">Submit answer</button>
</>
) : 'Loading next quiz...'
}
</div>
)
}