Last active
May 20, 2021 13:18
-
-
Save GeoffMahugu/2e776dc6dd9bdaa04a5a865a9daa2b7b to your computer and use it in GitHub Desktop.
This is a react component page using Page interface
This file contains hidden or 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
import React from 'react'; | |
import { Link } from 'react-router-dom'; | |
import IPageProps from '../interfaces/page.interface'; | |
const HomePage: React.FunctionComponent<IPageProps> = props => { | |
return ( | |
<div> | |
<h1> Home Page - Unprotected</h1> | |
<Link to={`/cart`}> | |
<button>View Cart</button> | |
</Link> | |
<Link to={`/auth/signup`}> | |
<button>SignUp</button> | |
</Link> | |
</div> | |
); | |
} | |
export default HomePage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment