icd2k3/react-router-breadcrumbs-hoc

Question: breadcrumbs propTypes

StuartMorris0 opened this issue · 1 comments

Hello,

Could you share what the {breadcrumbs} propTypes are please? I'm using a strict eslint project which requires PropTypes to be declared.

I can see it is an array, but do you know what the inner object layout for breadcrumbs are?

Thanks

Hi @StuartMorris0,

breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
  breadcrumb: PropTypes.node,
  match: // see https://reacttraining.com/react-router/web/api/match
  location: // see https://reacttraining.com/react-router/web/api/location
}))