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
63a945f5
Commit
63a945f5
authored
Aug 09, 2020
by
Jiwon Yoon
Browse files
radio checked reset
parent
aebc0b83
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Quiz.js
View file @
63a945f5
...
@@ -19,11 +19,11 @@ function Quiz() {
...
@@ -19,11 +19,11 @@ function Quiz() {
i
:
0
,
i
:
0
,
page
:
0
,
page
:
0
,
})
})
const
[
selected
,
setSelected
]
=
useState
(
""
)
//선택한 답을 보여줄 것
들
const
[
selected
,
setSelected
]
=
useState
(
""
)
//선택한 답을 보여줄 것
function
handleQuestion
()
{
function
handleQuestion
()
{
setQuestion
({
...
QnA
[
question
.
i
+
1
],
i
:
question
.
i
+
1
,
page
:
question
.
page
+
1
})
setQuestion
({
...
QnA
[
question
.
i
+
1
],
i
:
question
.
i
+
1
,
page
:
question
.
page
+
1
})
setSelected
(
""
)
setSelected
(
""
)
//페이지 넘어가면 Your Answer 초기화
}
}
let
handleChange
=
(
ev
)
=>
{
let
handleChange
=
(
ev
)
=>
{
...
...
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