Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Last active May 20, 2021 13:18
Show Gist options
  • Save GeoffMahugu/2e776dc6dd9bdaa04a5a865a9daa2b7b to your computer and use it in GitHub Desktop.
Save GeoffMahugu/2e776dc6dd9bdaa04a5a865a9daa2b7b to your computer and use it in GitHub Desktop.
This is a react component page using Page interface
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