examples/standard/src/index.js
function renderRoutes() {
  return (
    <Switch>
      {
        routes.map(route => (
          <Route key={route.path || ''} {...route} />
        ))
      }
    </Switch>
  );
}
function renderRoutes() {
  return (
    <Switch>
      {
        routes.map(route => (
          <Route key={route.path || ''} {...route} />
        ))
      }
    </Switch>
  );
}
function renderRoutes ( ) { return ( < Switch > { routes . map ( route => ( < Route key = { route . path || '' } { ... route } / > ) ) } < / Switch > ) ; }
Render routes from route config
Render routes from route config