Why is the routes [] array of react-router4 missing?

problems encountered in upgrading v4
the routes array does not have the
function: the current menu of sub-routes or sub-routes of the menu remains expanded. For example, the user / user, then / user/ * / matches

of the side menu expansion.
Sep.07,2021
Menu