CoursesPage
parent
f797a34bc4
commit
d09fa93d90
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
class CoursesPage extends React.Component {
|
||||||
|
render() {
|
||||||
|
return <h2>Courses</h2>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CoursesPage;
|
Loading…
Reference in New Issue