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

No commit message

No commit message
parent 199db9ee
import React from 'react' import React from 'react'
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
function Home() {
function Home() {
return ( return (
<div className="Box"> <div className="Box">
<div className="Name"> <div className="Name">
이름을 입력하세요 이름을 입력하세요
<input onChange={(event) => { <input onChange={(event) =>
console.log(event.target.value) localStorage.setItem('사용자이름', event)
} } />
}/>
</div>
{( this.state.value === null)
? alert('이름을 입력하세요')
: <Link to="/quiz">
<button className="QuizStart">QUiz Start !</button>
</Link>
}
</div> </div>
/* <Link to="/quiz"> <Link to="/quiz">
<button className="QuizStart">Quiz Start !</button> <button className="QuizStart">Quiz Start !</button>
</Link> </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