Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import PropTypes from 'prop-types';
- import React from 'react';
- import CustomerMatch from '../containers/CustomerMatchContainer';
- import {BrowserRouter as Router, Link, Route} from 'react-router-dom'
- export default class ServiceParentComponent extends React.Component {
- render() {
- return (
- <Router>
- <div>
- <Route path="/" exact={true} render={() => (
- <div>
- <h3>Services App</h3>
- <Link to={`/customers/match`}>Customer Match</Link>
- </div>
- )} />
- <Route path="/customers/match" component={CustomerMatch} />
- </div>
- </Router>
- );
- }
- }
Add Comment
Please, Sign In to add comment