Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2. import { BrowserRouter as Router , Link } from 'react-router-dom';
  3. import Route from 'react-router-dom/Route';
  4. import Product from './components/Dashboard/Product';
  5.  
  6. class Routes extends Component {
  7.     render () {
  8.       return (
  9.         <div>
  10.           <Router>
  11.             <div>
  12.               <Route exact path="/dashboard/products" component={Product}/>
  13.             </div>
  14.           </Router>
  15.         </div>
  16.        
  17.       )
  18.     }
  19. }
  20.  
  21. export default Routes;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement