2019-07-24 17:10:44 +00:00
|
|
|
import React from 'react';
|
|
|
|
import './App.css';
|
2019-09-18 17:53:48 +00:00
|
|
|
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
|
|
|
|
import Pond from "./Pond";
|
|
|
|
import SingleNode from "./SingleNode";
|
2019-10-01 15:53:25 +00:00
|
|
|
import Index from "./NodeIndex";
|
2019-09-18 17:53:48 +00:00
|
|
|
|
|
|
|
class App extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props)
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Router>
|
|
|
|
<Route path="/" exact component={Index} />
|
|
|
|
<Route path="/app/pond/" component={Pond} />
|
|
|
|
<Route path="/app/node/:node" component={SingleNode} />
|
|
|
|
</Router>
|
2019-07-24 17:10:44 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App
|