-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (23 loc) · 787 Bytes
/
App.js
File metadata and controls
27 lines (23 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react';
import styled from 'styled-components';
import { Route, Switch } from 'react-router-dom';
import Navbar from './components/Navbar';
import HomePage from './pages/HomePage';
import AboutPage from './pages/AboutPage';
import Login from './pages/Login';
import CreateAccount from './pages/CreateAccount';
import PageNotFound from './pages/PageNotFound';
const App = ({ className }) => (
<div className={className}>
<Navbar />
<Switch>
<Route exact path="/" component={HomePage} />
<Route path="/about" component={AboutPage} />
<Route path="/login" component={Login} />
<Route path="/createaccount" component={CreateAccount} />
<Route component={PageNotFound} />
</Switch>
</div>
);
export default styled(App)`
`;