TinyForest system front-end written with ReactJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
730 B

  1. import React from "react";
  2. import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
  3. import 'bootstrap/dist/css/bootstrap.min.css';
  4. import Navigator2 from './Components/Navigator2';
  5. import './App.css';
  6. import Home from './Components/Home';
  7. import Plants from './Components/Plants';
  8. import Sysinfo from './Components/Sysinfo';
  9. export default function App() {
  10. return (
  11. <Router>
  12. <div>
  13. <Navigator2 />
  14. <Switch>
  15. <Route path="/system" component={Sysinfo}/>
  16. <Route path="/plants" component={Plants}/>
  17. <Route exact path="/" component={Home}/>
  18. <Route render={() => <h1>Page not found</h1>}/>
  19. </Switch>
  20. </div>
  21. </Router>
  22. );
  23. }