-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Button accept Link as custom component #129
Comments
Hi @khanhhaquang, The correct way to do this would be like so: <Link to="/somewhere">
<Button>
Click me
</Button>
</Link> If you believe adding the I'm curious where you got that specific prop from, do you have a reference from another component library that you're referring to? |
Surely it's a solution, but nested |
Sorry, you are correct, I was not thinking when I wrote that comment! 😅 In some ways this relates to #108 because we fundamentally lack a way to use a btw: am I correct that the |
Hi Benji, actually it's just an popup idea to custom the wrapper as a Component. Another solution for this case is using |
Currently there no choice to custom
Button
to beLink
from react-router.Expected like:
<Button component={<Link to='/somewhere' />} />
The text was updated successfully, but these errors were encountered: