firstian
firstian
Explore posts from servers
KPCKevin Powell - Community
Created by firstian on 4/5/2024 in #front-end
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?
4 replies