-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhome.js
More file actions
30 lines (27 loc) · 729 Bytes
/
home.js
File metadata and controls
30 lines (27 loc) · 729 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 from 'react';
import './App.css';
import Linecharts from './Linechart'
import LinechartQuery1 from "./LinechartQuery1";
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
function App() {
return (
<div className="App">
<Router>
{/*<div class="col-sm-2">*/}
<Link to={'/Linecharts'} className="nav-link btn btn-info">Line Chart</Link>
{/*</div>*/}
<div className="container">
<Switch>
<Route path='/Linecharts' component={Linecharts} />
</Switch>
</div>
<div className="container">
<Switch>
<Route path='/LinechartQuery1' component={LinechartQuery1} />
</Switch>
</div>
</Router>
</div>
);
}
export default App;