-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
30 lines (28 loc) · 954 Bytes
/
Copy pathApp.jsx
File metadata and controls
30 lines (28 loc) · 954 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 { Route, Switch, Redirect } from "react-router-dom";
import "./App.css";
import NavBar from "./components/NavBar";
import Footer from "./components/Footer";
import Blank from "./components/Blank";
import List from "./components/List";
import Master_Detail from "./components/Master_Detail";
import Grid from "./components/Grid";
//TODO Web Template Studio: Add routes for your new pages here.
class App extends Component {
render() {
return (
<React.Fragment>
<NavBar />
<Switch>
<Redirect exact path = "/" to = "/Blank" />
<Route path = "/Blank" component = { Blank } />
<Route path = "/List" component = { List } />
<Route path = "/Master_Detail" component = { Master_Detail } />
<Route path = "/Grid" component = { Grid } />
</Switch>
<Footer />
</React.Fragment>
);
}
}
export default App;