Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // parent component
- <tr onClick={() => this.props.history.push(`users/${id}`)}>
- // users page receives the id from the parent
- // component with this.props.history.push()
- <Tab label='Users' key='users'>
- <div>users page content</div>
- </Tab>
- // This page must also receive the id from parent component.
- // The structure is similar to users page.
- <Tab label='Info' key='info'>
- <Redirect to={'/info'} />
- </Tab>
- [tab 1]: users/12345
- [tab 2]: info/12345
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement