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
DDeno
Created by firstian on 8/3/2023 in #help
Deno VS Code plugin too aggressive in auto-completion
I'm new to Deno and learning through some tutorials. I'm using VS Code and have the Deno plugin enabled. I find that the auto-completion to be very aggressive. It will often complete something even if I don't hit tab. For example, when I type
app.use(async (ctx,
app.use(async (ctx,
When I type the ',' the plugin automatically changed ctx to Context, and added the import as well. This is unlike other auto-complete when I have to hit a tab for completion. Is there a way to disable this automatic behavior? This is almost unusable, because I'll have to remember to hit Esc before type the next character. This doesn't happen when the Deno plugin is disabled.
2 replies