Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Why having a Link as a child of a Button - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
3 replies
firstian
Why having a Link as a child of a Button
I see examples in React with Radix that does things like
:
<Button asChild>
<Link href="/path">A Link</Link>
<Button>
<Button asChild>
<Link href="/path">A Link</Link>
<Button>
Why is this necessary
? Wouldn
't it be simpler to just use a Link and style it like a button
? What am I missing
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Having a button behave like a link inside a paragraph (wrapping text)
KP-C
Kevin Powell - Community / front-end
4y ago
Grid as a child of a flex doesn't work properly
KP-C
Kevin Powell - Community / front-end
3y ago
Tabindex for Button inside Link
KP-C
Kevin Powell - Community / front-end
3y ago