-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (28 loc) · 890 Bytes
/
App.js
File metadata and controls
30 lines (28 loc) · 890 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
28
29
30
import React, { Component } from "react";
import { Switch, Route } from "react-router-dom";
import "../styles/App.css";
import Landing from "./LandingPage";
import Login from "./LoginPage";
import Signup from "./SignupPage";
import Reset from "./ResetPage";
import Dashboard from "./Dashboard";
import Footer from "../components/Footer";
export default class App extends Component {
render() {
console.log(this.props);
return (
<div className="App">
<div className="content">
<Switch>
<Route exact path="/" component={Landing} />
<Route path="/login" component={Login} />
<Route path="/signup" component={Signup} />
<Route path="/reset" component={Reset} />
<Route exact path="/dashboard" component={Dashboard} />
</Switch>
</div>
<Footer />
</div>
);
}
}