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
bc692315
Commit
bc692315
authored
Jul 27, 2020
by
김민수
Browse files
No commit message
No commit message
parent
2c310feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Quiz.js
View file @
bc692315
import
React
from
'
react
'
;
// import logo from './logo.svg';
import
'
./Quiz.css
'
;
// import ReactTimeout from 'react-timeout';
// import {BrowserRouter as Router, Link, Route} from 'react-router-dom'
const
question
=
[
{
Q
:
"
6 X 4 ?
"
,
Choose
:
[
6
,
12
,
18
,
24
],
A
:
""
},
...
...
@@ -58,7 +59,7 @@ class Quiz extends React.Component {
{
/* <div>
<input type="text" value={this.state.v} name="A" onChange={this.setAnswer} />
</div> */
}
<
button
type
=
"
button
"
onClick
=
{
this
.
setQuestion
}
>
다음
<
/button
>
<
button
type
=
"
button
"
onClick
=
{
this
.
setQuestion
,
3000
}
>
다음
<
/button
>
<
/div
>
)
}
...
...
@@ -75,7 +76,6 @@ class Quiz extends React.Component {
<
/div
>
<
button
className
=
"
QuizStart
"
onClick
=
{
this
.
ShowQuiz
}
>
Quiz
Start
!<
/button
>
<
/div
>
)
}
}
...
...
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