Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
icd2k3 committed Mar 13, 2018
1 parent 9bb6148 commit c64b102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ or
withBreadcrumbs()(MyComponent);
```

## Simple example
## Example

```js
import React from 'react';
Expand Down Expand Up @@ -86,7 +86,7 @@ Pathname | Result

Just add a `breadcrumb` prop to your routes that require custom breadcrumbs.

## Dynamic Breadcrumbs
## Dynamic breadcrumbs

If you pass a component as the `breadcrumb` prop it will be injected with react-router's [match](https://reacttraining.com/react-router/web/api/match) and [location](https://reacttraining.com/react-router/web/api/location) objects as props. These objects contain ids, hashes, queries, etc from the route that will allow you to map back to whatever you want to display in the breadcrumb.

Expand Down

0 comments on commit c64b102

Please sign in to comment.