Commit 8ff4fcb1 authored by 김민수's avatar 김민수
Browse files

No commit message

No commit message
parent 199db9ee
import React from 'react'
import { Link } from 'react-router-dom';
function Home() {
function Home() {
return (
<div className="Box">
<div className="Name">
이름을 입력하세요
<input onChange={(event) => {
console.log(event.target.value)
}
}/>
</div>
<input onChange={(event) =>
localStorage.setItem('사용자이름', event)
} />
{( this.state.value === null)
? alert('이름을 입력하세요')
: <Link to="/quiz">
<button className="QuizStart">QUiz Start !</button>
</Link>
}
</div>
/* <Link to="/quiz">
<Link to="/quiz">
<button className="QuizStart">Quiz Start !</button>
</Link>
}*/
</div>
)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment