Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Last active May 20, 2021 13:13
Show Gist options
  • Save GeoffMahugu/7429b0cedb21c373b7e785d1182b53b1 to your computer and use it in GitHub Desktop.
Save GeoffMahugu/7429b0cedb21c373b7e785d1182b53b1 to your computer and use it in GitHub Desktop.
This is a react typescript CartPage
import React from 'react';
import { Link } from 'react-router-dom';
import IPageProps from '../interfaces/page.interface';
const CartPage: React.FunctionComponent<IPageProps> = props => {
return (
<div>
<h1> Cart Page - Protected</h1>
<Link to={`/`}>
<button>Back Home</button>
</Link>
</div>
);
}
export default CartPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment