Material-UI Breadcrumb Integration with react-router
问题 I'm trying to use the Material-UI breadcrumb with react-router. How can I programatically detect the current route. On the Material-UI website there is an example on how to use it but it requires the usage of a static breadcrumbNameMap. I already tried to split the pathname by using the HOC "withRouter" but it doesn't work. import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import { Breadcrumbs, Link, Paper, Typography} from "@material-ui/core"; import {