How to add a link to a List in material-ui 1.0?
问题 The following messes with the onClick animation (the ListItem turns red): <List> <a href="https://www.google.com"> <ListItem button> <ListItemText primary="Google" /> </ListItem> </a> </List> While adding the link inside ListItem, only makes the transition work if ListItemText is clicked, which is not what I want. What is the correct way to add a link? 回答1: The easiest way to accomplish this is to make the ListItem a link by using the component prop: <List> <ListItem button component="a" href