22 lines
602 B
JavaScript
22 lines
602 B
JavaScript
import React, { Component } from 'react';
|
|
import './App.css';
|
|
import Home from './Home';
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
|
import ClientList from './ClientList';
|
|
import ClientEdit from "./ClientEdit";
|
|
|
|
class App extends Component {
|
|
render() {
|
|
return (
|
|
<Router>
|
|
<Switch>
|
|
<Route path='/' exact={true} component={Home}/>
|
|
<Route path='/clients' exact={true} component={ClientList}/>
|
|
<Route path='/clients/:id' component={ClientEdit}/>
|
|
</Switch>
|
|
</Router>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default App; |