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
8c2acaf7
Commit
8c2acaf7
authored
Aug 09, 2020
by
Jiwon Yoon
Browse files
찐최종
parent
63a945f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Quiz.js
View file @
8c2acaf7
...
...
@@ -11,9 +11,10 @@ const QnA = [
let
Answers
=
[]
let
Solutions
=
[
4
,
3
,
2
]
localStorage
.
setItem
(
'
Solutions
'
,
JSON
.
stringify
(
Solutions
))
function
Quiz
()
{
localStorage
.
setItem
(
'
Solutions
'
,
JSON
.
stringify
(
Solutions
))
const
[
question
,
setQuestion
]
=
useState
({
...
QnA
[
0
],
i
:
0
,
...
...
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