How to use the react-router-breadcrumbs-hoc.withBreadcrumbs function in react-router-breadcrumbs-hoc

To help you get started, we’ve selected a few react-router-breadcrumbs-hoc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / kibana / x-pack / plugins / apm / public / components / app / Main / Breadcrumbs.js View on Github external
{breadcrumb}
                
              )}
            
          );
        })}
      
    );
  }
}

const flatRoutes = flatten(
  routes.map(route => (route.switch ? route.routes : route))
);

export default withBreadcrumbs(flatRoutes)(Breadcrumbs);

react-router-breadcrumbs-hoc

small, flexible, higher order component for rendering breadcrumbs with react-router 4.x

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis