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

as

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