Commit 7d519f79 authored by Paul R Otto's avatar Paul R Otto

Added about page component

parent d4abc5cf
import React from 'react';
export default class AboutPage extends React.Component {
state = {};
render() {
return (
<div>
<p>About page</p>
</div>
);
}
}
......@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import { HashRouter, Route, Link } from 'react-router-dom';
import { HomePage } from './Components';
import { ABoutPage } from './Components';
const Dhaynes = () => <p>dhaynes</p>;
......@@ -15,9 +16,13 @@ const App = () => (
<li>
<Link to="/dhaynes">dhaynes</Link>
</li>
<li>
<Link to="/About">About</Link>
</li>
</ul>
<Route path="/" exact component={HomePage} />
<Route path="/dhaynes" component={Dhaynes} />
<Route path="/About" component={AboutPage} />
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment