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
8ff4fcb1
Commit
8ff4fcb1
authored
Jul 29, 2020
by
김민수
Browse files
No commit message
No commit message
parent
199db9ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Home.js
View file @
8ff4fcb1
import
React
from
'
react
'
import
{
Link
}
from
'
react-router-dom
'
;
function
Home
()
{
return
(
<
div
className
=
"
Box
"
>
<
div
className
=
"
Name
"
>
이름을
입력하세요
<
input
onChange
=
{(
event
)
=>
{
console
.
log
(
event
.
target
.
value
)
}
}
/
>
<
input
onChange
=
{(
event
)
=>
localStorage
.
setItem
(
'
사용자이름
'
,
event
)
}
/
>
<
/div
>
{(
this
.
state
.
value
===
null
)
?
alert
(
'
이름을 입력하세요
'
)
:
<
Link
to
=
"
/quiz
"
>
<
button
className
=
"
QuizStart
"
>
QUiz
Start
!<
/button
>
<
/Link
>
}
<
Link
to
=
"
/quiz
"
>
<
button
className
=
"
QuizStart
"
>
Quiz
Start
!<
/button
>
<
/Link
>
<
/div
>
/* <Link to="/quiz">
<button className="QuizStart">Quiz Start !</button>
</Link>
}*/
)
}
...
...
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