Create a new React component named $ARGUMENTS following project conventions:
-
Create the component file at
client/src/components/$ARGUMENTS.tsx -
Follow this structure:
import React from 'react'; // Icons (if needed) // Types (if needed) interface Props { // Define props here } export function $ARGUMENTS({ ...props }: Props) { // State hooks // Handler functions return ( <section className="bg-white rounded border border-slate-200 p-4"> <h3 className="font-bold text-brand-navy mb-4">Title</h3> {/* Content */} </section> ); } -
Conventions:
- Use function components (not arrow functions for exports)
- Interface for Props comes first
- Imports order: React, Icons, Types, local imports
- Use Tailwind CSS classes
- Use
brand-navyfor headings
-
After creation:
- Add export to
client/src/components/index.tsif it exists - Run build to verify no type errors
- Add export to
Scan to join WeChat group