Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import PropTypes from 'prop-types';
  2. import React from 'react';
  3. import CustomerMatch from '../containers/CustomerMatchContainer';
  4. import {BrowserRouter as Router, Link, Route} from 'react-router-dom'
  5.  
  6. export default class ServiceParentComponent extends React.Component {
  7. render() {
  8. return (
  9. <Router>
  10. <div>
  11. <Route path="/" exact={true} render={() => (
  12. <div>
  13. <h3>Services App</h3>
  14. <Link to={`/customers/match`}>Customer Match</Link>
  15. </div>
  16. )} />
  17. <Route path="/customers/match" component={CustomerMatch} />
  18. </div>
  19. </Router>
  20. );
  21. }
  22. }
Add Comment
Please, Sign In to add comment