How to transfer parameters between two subpages by react-router4.0

the "Application enabling platform" page is expanded by default. Radio selects a row in the table, id as a parameter, and the page that needs to be passed to the enterprise information. In topic, it is impossible to pass parameters in the form of callback, so how to transfer data between two sub-pages?
clipboard.png

clipboard.png

clipboard.png


stupid method, when you click radio , put id in state . Then get this state on the topic page.

router can be passed like this.

//component
class Index extends Component {
  constructor(props) {
    super(props);
    const { state } = this.props.location;
    let id;
    if (state) {
      if (state.id) {
        id = state.id;
      }
    }
    this.state = {selectedId: id}
    }

I don't know if this will meet your needs

Menu