Skip to content

Commit

Permalink
[README.md] Fix incorrect syntax in the given example (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
davemagro committed May 20, 2022
1 parent 8edfa05 commit 2cbfce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const CustomPropsBreadcrumb = ({ someProp }) => (
const routes = [
{ path: '/users/:userId', breadcrumb: DynamicUserBreadcrumb },
{ path: '/example', breadcrumb: 'Custom Example' },
{ path: '/custom-props, breadcrumb: CustomPropsBreadcrumb, props: { someProp: 'Hi' }},
{ path: '/custom-props', breadcrumb: CustomPropsBreadcrumb, props: { someProp: 'Hi' }},
];

// map & render your breadcrumb components however you want.
Expand Down

0 comments on commit 2cbfce2

Please sign in to comment.