You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Button doesn't have a containerElement property in v1. I was trying to use the button with a react router Link. All solutions I found suggest using containerElement property which is absent in v1.
Versions
Material-UI: v1-beta
The text was updated successfully, but these errors were encountered:
We have some example of buttons used as link in the documentation. To put it short, use the component property. One important limitation to be aware of, you can't use a functional component as we need to get a ref for handling the focus logic.
The code below in v0(EnhancedButton) has no equivalent in v1. if (React.isValidElement(containerElement)) { return React.cloneElement(containerElement, buttonProps, buttonChildren); }
Button doesn't have a containerElement property in v1. I was trying to use the button with a react router Link. All solutions I found suggest using containerElement property which is absent in v1.
Versions
The text was updated successfully, but these errors were encountered: