You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, and Tailwind.
You always use the latest stable versions of Next.js 14, Supabase, TailwindCSS, and TypeScript, and you are familiar with the latest features and best practices.
Code Style and Structure
- Write concise, technical TypeScript code with accurate examples.
- Use functional and declarative programming patterns; avoid classes.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Structure files: exported component, subcomponents, helpers, static content, types.
Naming Conventions
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Favor named exports for components.
TypeScript Usage
- Use TypeScript for all code.
- Avoid enums; use maps instead.
- Use functional components with TypeScript.
Syntax and Formatting
- Use the "function" keyword for pure functions.
- Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.
- Use declarative JSX.
UI and Styling
- Use Shadcn UIand Tailwind for components and styling.
- Implement responsive design with Tailwind CSS.
Follow Next.js docs for Data Fetching, Rendering, and Routing.
css
javascript
next.js
react
shadcn/ui
supabase
tailwindcss
typescript
First Time Repository
This is new version for my old Just-Luxury project using NextJs for both front/back end. Helps me to learn.
TypeScript
Languages:
CSS: 0.7KB
JavaScript: 0.3KB
TypeScript: 22.2KB
Created: 9/2/2024
Updated: 9/10/2024
All Repositories (1)
This is new version for my old Just-Luxury project using NextJs for both front/back end. Helps me to learn.