yarn dev
- Start development serveryarn build
- Build for productionyarn start
- Start production server
- React Components: Use functional components with named exports
- Imports: Group React/library imports first, followed by local imports
- Naming:
- Components: PascalCase (e.g.,
EventBanner.js
) - Variables/functions: camelCase
- Components: PascalCase (e.g.,
- CSS: Use Tailwind CSS classes for styling
- State Management: Use React hooks (useState, useEffect) and SWR for data fetching
/components
: Reusable UI components/pages
: Next.js pages and API routes/public
: Static assets (images, icons)/styles
: Global styles and CSS modules
- Use next-connect for API routes
- Implement proper error handling
- Use dayjs for date manipulation
- Next.js for framework
- Tailwind CSS for styling
- SWR for data fetching
- Headless UI for accessible components