阅读背景:

如何使用React JS使整个卡片组件在材料UI中可点击?

来源:互联网 

Im using Material UI Next in a React project. I have the Card component which has an image(Card Media) and text(Card Text) inside it. I also have a button underneath the text. My question is..how to make the whole card clickable? ie. Whether a user presses on the card text, or the card image or the button, it should trigger the onClick event which I call on the button. in a React project. I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: