mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-25 03:11:17 +00:00
Wrap the session check in beforeLoad with a try/catch so network errors, 404s, and other failures redirect to the login page instead of showing an error boundary. Co-authored-by: Ona <no-reply@ona.com>
React + TypeScript + Vite + shadcn/ui
This is a template for a new Vite project with React, TypeScript, and shadcn/ui.
Adding components
To add components to your app, run the following command:
npx shadcn@latest add button
This will place the ui components in the src/components directory.
Using components
To use the components in your app, import them as follows:
import { Button } from "@/components/ui/button"