Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Last active May 20, 2021 13:19
Show Gist options
  • Select an option

  • Save GeoffMahugu/a974c25f5bf3a1ca615762265645c619 to your computer and use it in GitHub Desktop.

Select an option

Save GeoffMahugu/a974c25f5bf3a1ca615762265645c619 to your computer and use it in GitHub Desktop.
This is the init home page for react-firebase project
import React from 'react';
import { Link } from 'react-router-dom';
interface IPageProps {
name: string;
}
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