asChild in a Base UI project

shadcn/base-ui-as-childerrorreactcorrectness

Why it matters

Base UI components compose through the render prop; asChild is ignored.

Fix

Use render={<Link href="…" />}.

Credit

  • From Base UI

    Components compose through the render prop rather than asChild.

References