File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import ReactDOM from 'react-dom' ;
3+ import './index.css' ;
4+ import 'bootstrap/dist/css/bootstrap.min.css' ;
5+ import { Route , BrowserRouter as Router , Switch , Redirect } from 'react-router-dom' ;
6+ import Navigation from './components/Navigation' ;
7+ import Home from './pages/Home' ;
8+ import Manifesto from './pages/Manifesto' ;
9+ import Journal from './pages/Journal' ;
10+ import Contact from './pages/Contact' ;
11+ import Login from './pages/Login' ;
12+ import SignUp from './pages/SignUp' ;
13+ import Footer from './components/Footer' ;
14+ import Header from './components/Header' ;
15+
16+ function App ( ) {
17+ return (
18+ < Router >
19+ < Navigation />
20+ < Switch >
21+ < Route path = '/' exact component = { Home } />
22+ < Route path = '/manifesto' exact component = { Manifesto } />
23+ < Route path = '/journal' exact component = { Journal } />
24+ < Route path = '/contact' exact component = { Contact } />
25+ < Route path = '/login' exact component = { Login } />
26+ < Route path = '/signup' exact component = { SignUp } />
27+ < Route path = '/header' component = { Header } />
28+ < Redirect to = '/' />
29+ </ Switch >
30+ < Footer />
31+ </ Router >
32+ ) ;
33+ }
34+
35+ ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
You can’t perform that action at this time.
0 commit comments