1. Due to the needs of the business scenario, the route jump is controlled through js, and there is no programmatic route navigation
in the react-router4 documents.I found this article on the website, but I can only get the history objects in props in the App component, but I can"t get the sub-components and sub-components under App. I don"t know if I"m missing something, or if I have the wrong configuration.
below is my route and index.js configuration
there is another way to achieve it through withRouter, but this method will make it more complex for my components to get through ref, so I would like to ask if there is a simpler method or case.