import { BrowserRouter as Router, Switch, Route } from 'react-router-dom' import { routes } from './routes' const RouterView = () => { return ( {routes.map((route) => { return ( ) })} ) } export default RouterView