Nest the card component of shadcn-ui inside a Link tag.
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
I am trying to nest a card component from shadcn ui inside a Link tag, so that if the end user clicks on the card, they are taken to some other place on the website. But I get hydration errors. I read that a tags can contain only inline elements. Is there a workaround? I don't want to use "use client", because I want SSR (or SSG) and I have some async functions on the component, which cannot use use client directive. I'm new to react / nestjs, etc. I have a little familiarity with sveltekit.
1 Reply
Masai LionOP
This is what the UI looks like right now. I want the users to go to any translation once they click on the whole card.