Starting a NextJS project #
npx create-next-app@latest
Set up shadcn/ui
cd 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>
)
}
Some notes:
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]