Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set router, Create Header, Login, Signup
- Loading branch information
KoheiAsano
committed
Dec 18, 2018
1 parent
c0edf93
commit 29d5bb5
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
const Header = ({history}) => ( | ||
<div> | ||
<button onClick={() => history.push("/")}>ToDo</button> | ||
<button onClick={() => history.push("/login")}>Login</button> | ||
<button onClick={() => history.push("/signup")}>SignUp</button> | ||
</div> | ||
) | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
const Login = () => ( | ||
<div> | ||
<p>Login</p> | ||
</div> | ||
) | ||
|
||
export default Login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
const Signup = () => ( | ||
<div> | ||
<p>Signup</p> | ||
</div> | ||
) | ||
|
||
export default Signup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters