How does react-router4.0 js jump, how does it pass in the address bar? the parameters of key=value, and how to get them on the new page.

how does react-router4.0 js jump, how does the address bar pass the parameters of key=value, and how do you get

on the new page?
Apr.01,2021

react-router there is a withRouter , which can inject history into your components, ah, what related routing methods and information.

import {withRouter} from 'react-router-dom'

class MyComponent extends Component {
    doSth = () => {
        this.props.history.push('/xxx')
    }
}
export default withRouter(MyComponent)

use 2 can this.props.location.query.key
I don't know if 4 has

.
Menu