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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be6eab-31856.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be6eab-31856.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?