Capítulo 11 de 108
Simplest installation path: create-remix, shadcn init, shadcn add. Note this guide is specifically for Remix, not React Router (a separate guide/chapter covers that).
~/components/ui/*, not @/components/ui/* like Next.js/Vite.npx create-remix@latest my-app
npx shadcn@latest init
npx shadcn@latest add button
import { Button } from "~/components/ui/button"
export default function Home() {
return (
<div>
<Button>Click me</Button>
</div>
)
}
~/ característico de Remix, diferente do @/ usado em Next/Vite.create-remix + init).~/ vs @/ import alias distinction when copying examples between frameworks.