import React from 'react' ; import { Switch , Route } from 'react-router-dom' ; import Dashboard from '../pages/Dashboard' ; import Import from '../pages/Import' ; const Routes = ( ) => ( < Switch > < Route path = "/" exact component = { Dashboard } / > < Route path = "/import" component = { Import } / > < /Switch>); export default Routes ;