Commit 2a21eaec authored by Ha YeaJin's avatar Ha YeaJin
Browse files

as

parent 3f58923f
import React, { } from 'react';
import styled from 'styled-components';
import { Link } from 'react-router-dom';
const Log = styled.div`
background-color: #981e1e;
......@@ -28,7 +29,9 @@ function Login() {
<input className="form-control" id="author_input" name="author" type="text" required />
</div>
<div className="form-group">
<button className="btn" type="submit">로그인</button>
<Link to="/home">
<button className="btn" type="submit">로그인</button>
</Link>
</div>
</form>
</Log>
......
......@@ -11,7 +11,7 @@ ReactDOM.render(
<Router>
<Switch>
<Route exact path="/" component={Login} />
<Route path="/Home" component={Home} />
<Route path="/home" component={Home} />
</Switch>
</Router>,
document.getElementById('root')
......
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