I am trying to pass the selected Id of an account when a user clicks the click zone.
<Link to="/account" id={1234}>
However, on my Account component, which this 'to' takes us to:
<Route path="/account" component={Account}/>
I am getting Undefined.
export default class Account extends Component {
constructor(props) {
super(props);
alert(props.id);
Is there a way to pass the prop to my component using the Link?