Created
April 7, 2018 17:55
-
-
Save bilal-fazlani/8d0ccda7233e9833109f3c807517fb97 to your computer and use it in GitHub Desktop.
signalr-react-demo
This file contains 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, {Component} from 'react'; | |
import {Link, Route, withRouter} from "react-router-dom"; | |
import About from "./Components/About"; | |
import EmployeeDetails from "./Components/EmployeeDetails"; | |
import AddEmployee from "./Components/AddEmployee"; | |
import EditEmployee from "./Components/EditEmployee"; | |
import Dashboard from "./Components/Dashboard"; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<header> | |
| |
<Link to="/">Home</Link> | |
| | |
<Link to="/add-new-employee">Add new employee</Link> | |
| | |
<Link to="/about">About</Link> | |
</header> | |
<hr /> | |
<main> | |
<Route exact path="/" component={Dashboard}/> | |
<Route exact path="/about" component={About}/> | |
<Route exact path="/add-new-employee" component={AddEmployee}/> | |
<Route exact path="/employee/:id" component={EmployeeDetails}/> | |
<Route path="/employee/:id/edit" component={EditEmployee}/> | |
</main> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment