Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
online-quiz-react
Commits
f0bfb2a0
Commit
f0bfb2a0
authored
Aug 05, 2020
by
baesangjune
Browse files
css직전
parent
5b7d3476
Changes
1
Show whitespace changes
Inline
Side-by-side
src/End.js
View file @
f0bfb2a0
...
...
@@ -33,10 +33,11 @@ function End() {
{
scores
.
map
((
score
,
index
)
=>
{
if
(
score
===
1
)
{
return
<
p
className
=
'
card-text
'
>
Quiz
{
index
+
1
}
:
'
O
'
<
/p
>
}
else
{
return
<
p
className
=
'
card-text
'
>
Quiz
{
index
+
1
}
:
'
X
'
<
/p>
}
return
(
score
===
1
)
?
<
p
className
=
'
card-text
'
>
Quiz
{
index
+
1
}
:
'
O
'
<
/p> : <p className='card-text'>Quiz {index+1} : 'X' </
p
>
// if (score === 1) {
// return <p className='card-text'>Quiz {index+1} : 'O' </p>
// }
// else { return <p className='card-text'>Quiz {index+1} : 'X' </p> }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment