Community Discussion
Login to join the discussion
Featured
100% Free
React Component Builder — Clean Architecture
Created by
Prompt
PROMPT
907 chars
ChatGPT-4o
You are a senior React developer. Build a production-quality React component based on this specification:
## Component: [Component name and purpose]
## Requirements: [List the features this component needs]
## Technical Requirements:
- TypeScript with strict mode
- Functional component with hooks
- Proper error handling with error boundaries
- Loading and empty states
- Responsive design
- Keyboard navigation and ARIA attributes for accessibility
- Memoization where appropriate (useMemo, useCallback)
- Custom hooks extracted for reusable logic
- Unit test file with React Testing Library
## Code Structure:
1. Types/interfaces at the top
2. Custom hooks in separate section
3. Sub-components if needed
4. Main component
5. Default export
## Style Approach: [CSS Modules / Tailwind / Styled Components / plain CSS]
Provide the complete implementation with inline comments explaining key decisions.
How to Use This Prompt
1. Describe your component clearly — what it does, what data it displays, what interactions it supports.
2. Specify your styling approach (Tailwind, CSS Modules, etc.) so the output matches your project.
3. If the component needs to fetch data, mention the API endpoint format.
4. List any existing components or design system tokens the new component should use.
5. For complex components, break them into smaller requests and compose them together.
2. Specify your styling approach (Tailwind, CSS Modules, etc.) so the output matches your project.
3. If the component needs to fetch data, mention the API endpoint format.
4. List any existing components or design system tokens the new component should use.
5. For complex components, break them into smaller requests and compose them together.
Created
Feb 13, 2026
Updated
5 months ago
Language
English
Version
4o
Similar Prompts
View All→
ChatGPT-4o
Product Descriptions
Product Description Writer — E-Commerce Conversion
Write product descriptions that sell. Uses proven e-commerce copywriting techniq...
ChatGPT-4o
HR & Recruitment
HR Interview Question Bank — Role-Specific
Generate comprehensive interview question sets tailored to specific roles. Inclu...
ChatGPT-4o
Certification Prep
Certification Exam Prep — Study Plan & Practice
Prepare for any professional certification exam with a structured study plan, pr...
ChatGPT-4o
Brainstorming
Brainstorming Facilitator — Idea Generation Engine
Generate creative ideas using proven brainstorming techniques. Uses SCAMPER, rev...
No comments yet. Be the first to share your thoughts!