const UrlLocation = () => ( <Breadcrumb> <LinkContainer to='/'><Breadcrumb.Item>Home</Breadcrumb.Item></LinkContainer> {routes.map((route, index) => ( <Route path={route.path} key={index} render={({location})=> ( <LinkContainer to={location.pathname}> <Breadcrumb.Item>{route.title}</Breadcrumb.Item> </LinkContainer> ) }/> ))} </Breadcrumb> )