use-react-router-breadcrumbs
use-react-router-breadcrumbs copied to clipboard
Custom props compatibility with declarative Routes
Hi, this solution worked for me for generating the routes with breadcrumbs, but I'm not able to pass custom props.
Type '{ path: string; breadcrumb: any; element: Element; props: any; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | (IndexRouteProps & BreadCrumb))'.
Property 'props' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | (IndexRouteProps & BreadCrumb))'.
However, when passing custom props using the object definition it works fine.
Originally posted by @aaroni34 in https://github.com/icd2k3/use-react-router-breadcrumbs/issues/46#issuecomment-1148466231