Question: breadcrumbs propTypes
StuartMorris0 opened this issue · 1 comments
StuartMorris0 commented
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
icd2k3 commented
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
}))