Making whole card clickable in Reactstrap
问题 I'm trying to create a card that, when clicked, performs an action. I've managed to make this work by adding a button to the card, which is bound to an event handler, and works as expected. I'm trying to get the whole card to work with the same event handler, as opposed to using the button, but I can't seem to get this to work as I would expect. const SiteCard = props => { const { site, siteSelectedCallback } = props; return ( <Card onClick={siteSelectedCallback} className="card-item">