lotus/lotuspond/front/src/App.js

25 lines
558 B
JavaScript
Raw Normal View History

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";
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