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
// current implementation for a Tab with a Link
<Tab
value="tabOne"
component={Link}
to={`/orgs/${props.params.orgId}/members`} // this prop doesn't exist in the docs, but it works
/>
Ah, that makes more sense. I was under the impression that the "component" prop could only be passed a reference, not an element. The following example solves my use case:
<Button component={props => <Link to="/open-collective" {...props} />}>
Link
</Button>
That said, since it applies to everything that extends from ButtonBase, wouldn't it make sense to put that section in ButtonBase instead of Button?
Hi, I don't believe this is a duplicate, but I've found that spreading "extra" props into the
component
prop is confusing and counter-intuitive (info found here: https://stackoverflow.com/questions/37843495/material-ui-adding-link-component-from-react-router). It would make a lot more sense to allow an actualrender
prop that can be used to actually render out a component.For example:
Result from proposed change:
This would make implementation a lot more intuitive.
The text was updated successfully, but these errors were encountered: