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

View File

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

View File

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