The easiest way to do this is to make the link a ListItem
link using component
prop:
<List>
<ListItem button component="a" href="https://www.google.com">
<ListItemText primary="Google" />
</ListItem>
</List>
Thus, it ListItem
will be a tag attached, tied to the right place, but still get the appropriate style so that visual changes do not appear.
component
prop . , href
prop , โโ :
.