Created
April 27, 2019 19:56
-
-
Save beaucarnes/ba019172841a701e5d5c0d3be132fab7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { BrowserRouter as Router, Route } from "react-router-dom"; | |
import "bootstrap/dist/css/bootstrap.min.css"; | |
import Navbar from "./components/navbar.component" | |
import ExercisesList from "./components/exercises-list.component"; | |
import EditExercise from "./components/edit-exercise.component"; | |
import CreateExercise from "./components/create-exercise.component"; | |
import CreateUser from "./components/create-user.component"; | |
function App() { | |
return ( | |
<Router> | |
<div className="container"> | |
<Navbar /> | |
<br/> | |
<Route path="/" exact component={ExercisesList} /> | |
<Route path="/edit/:id" component={EditExercise} /> | |
<Route path="/create" component={CreateExercise} /> | |
<Route path="/user" component={CreateUser} /> | |
</div> | |
</Router> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 5 lacks a semicolon
;
which creates an error when following the tutorial.P.S. Good work on the tutorial, thank you!