You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am using the Card component inside map to render multiple cards.
What I want is to be able to click the card and go to a link using onClick (I use react-router with browser history)
onClick={this.handleItemClick}
in the function on handleItemClick how can I know what card is the function called from?
I have used Menu.Items before and I can get that info with the name prop by passing event and {name} together
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Is there any prop like name that i can pass here, I could not find it in the docs.
and I am sorry if this is not the right way to ask for help , I am very new to github.
Version
0.61.6
The text was updated successfully, but these errors were encountered:
Hello
I am using the Card component inside map to render multiple cards.
What I want is to be able to click the card and go to a link using onClick (I use react-router with browser history)
onClick={this.handleItemClick}
in the function on handleItemClick how can I know what card is the function called from?
I have used Menu.Items before and I can get that info with the name prop by passing event and {name} together
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Is there any prop like name that i can pass here, I could not find it in the docs.
and I am sorry if this is not the right way to ask for help , I am very new to github.
Version
0.61.6
The text was updated successfully, but these errors were encountered: