CoursesPage

master
Tudor Stanciu 2020-04-11 02:17:27 +03:00
parent f797a34bc4
commit d09fa93d90
3 changed files with 15 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import HomePage from "./home/HomePage";
import AboutPage from "./about/AboutPage"; import AboutPage from "./about/AboutPage";
import Header from "./common/Header"; import Header from "./common/Header";
import PageNotFound from "./PageNotFound"; import PageNotFound from "./PageNotFound";
import CoursesPage from "./courses/CoursesPage";
function App() { function App() {
return ( return (
@ -12,6 +13,7 @@ function App() {
<Switch> <Switch>
<Route exact path="/" component={HomePage} /> <Route exact path="/" component={HomePage} />
<Route path="/about" component={AboutPage} /> <Route path="/about" component={AboutPage} />
<Route path="/courses" component={CoursesPage} />
<Route component={PageNotFound} /> <Route component={PageNotFound} />
</Switch> </Switch>
</div> </div>

View File

@ -10,6 +10,10 @@ const Header = () => {
Home Home
</NavLink> </NavLink>
{" | "} {" | "}
<NavLink to="/courses" activeStyle={activeStyle}>
Courses
</NavLink>
{" | "}
<NavLink to="/about" activeStyle={activeStyle}> <NavLink to="/about" activeStyle={activeStyle}>
About About
</NavLink> </NavLink>

View File

@ -0,0 +1,9 @@
import React from "react";
class CoursesPage extends React.Component {
render() {
return <h2>Courses</h2>;
}
}
export default CoursesPage;