Signup data is reaching the server code

This commit is contained in:
2021-01-22 00:55:17 +11:00
parent 30a5251400
commit a983d60b32
17 changed files with 3251 additions and 15 deletions
+30
View File
@@ -0,0 +1,30 @@
import React from 'react';
const Visitor = () => {
return (
<div>
<a href='/signup'>Sign Up</a>
<a href='/login'>Log In</a>
</div>
);
};
const Member = () => {
return (
<div>
<a href='/account'>Account</a>
<a href='/logout'>Log out</a>
</div>
);
};
const Header = () => {
return (
<header>
<h1><a href='/'>MERN Template</a></h1>
<Visitor />
</header>
);
};
export default Header;