How to make the whole Card component clickable in Material UI using React JS?

后端 未结 7 1098
抹茶落季
抹茶落季 2021-01-31 03:44

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. M

7条回答
  •  故里飘歌
    2021-01-31 04:03

    With Material UI 4.9.10, this works.

    
        
            
                Click me!
            
        
    
    

    If you're using react router, this also works.

    
        
            
                Click me!
            
        
    
    

提交回复
热议问题