React Component Builder
أنشئ مكوّن React بالمواصفات التالية: 1. **اسم المكوّن**: [ComponentName] 2. **الغرض**: حدد ما الذي يقوم به هذا المكوّن. 3. **الخصائص (Props)**: قدم قائمة مفصلة بالخصائص مع تحديد أنواعها في TypeScript. 4. **إدارة الحالة**: حدد طريقة إدارة الحالة (مثل useState، useReducer، Zustand، Redux). 5. **التنسيق**: اختر طريقة التنسيق (مثل Tailwind CSS، CSS Modules، Styled Components). 6. **التفاعلات**: أدرج أي تفاعلات مثل النقرات، إدخالات النماذج، أو الحركات. **المتطلبات**: - تأكد من تحديد أنواع TypeScript لجميع الخصائص. - نفذ آليات معالجة الأخطاء بشكل صحيح. - اشمل حالات التحميل إذا كان المكوّن يتعامل مع عمليات غير متزامنة. - صمم المكوّن ليكون متجاوبًا عبر الأجهزة المختلفة. - حافظ على كود نظيف وموثق جيدًا. بالإضافة إلى ذلك، قدم مثالًا لاستخدام هذا المكوّن، يوضح كيفية دمجه في تطبيق أكبر.
يعمل مع: ChatGPT · Claude · Gemini
هذا البرومبت مفيد لبناء مكونات React بطريقة منظمة تضمن جودة الكود وقابليته للصيانة. يُستخدم عندما تحتاج إلى إنشاء مكوّنات جديدة في مشروع React مع الاهتمام بالتفاصيل مثل إدارة الحالة، والتنسيق، والتفاعلات.
Create a React component with the following specifications: 1. **Component Name**: [ComponentName] 2. **Purpose**: Describe what this component is intended to do. 3. **Props**: Provide a detailed list of props, including their TypeScript types. 4. **State Management**: Use Zustand for state management. 5. **Styling**: Choose a styling method (e.g., Tailwind CSS, CSS Modules, Styled Components). 6. **Interactions**: List any interactions such as clicks, form inputs, or animations. **Requirements**: - Ensure TypeScript types for all props. - Implement proper error handling mechanisms. - Include loading states if the component handles asynchronous operations. - Design the component to be responsive across different devices. - Maintain clean and well-documented code. Additionally, provide an example usage scenario for this component, demonstrating how it can be integrated into a larger application.
أمثلة استخدام
في نفس الفئة — جاهزة للاستخدام الآن
مراجع الكود ومصلح الأخطاء
هذا البرومبت مفيد لمطوري البرمجيات الذين يرغبون في تحسين جودة الكود الخاص بهم. يُستخدم عند الحاجة إلى مراجعة شاملة للكود لاكتشاف الأخطاء، تحسين الأداء، وتعزيز الأمان.
تحسين تصحيح كود بايثون
هذا البرومبت مفيد للمبرمجين الذين يواجهون صعوبة في تصحيح أكواد بايثون الخاصة بهم. يساعد في تحديد الأخطاء واقتراح حلول عملية مع مراعاة تحسين الكود من حيث الكفاءة وقابلية القراءة.
تحسين كود بايثون للأداء
هذا البرومبت مفيد لمطوري البرمجيات الذين يرغبون في تحسين أداء الشيفرات البرمجية المكتوبة بلغة بايثون. يساعد في تحديد التغييرات اللازمة لزيادة الكفاءة وتقليل الاختناقات المحتملة.
Create a React component with the following specifications: 1. **Component Name**: [ComponentName] 2. **Purpose**: Describe what this component is intended to do. 3. **Props**: Provide a detailed list of props, including their TypeScript types. 4. **State Management**: Specify the state management approach (e.g., useState, useReducer, Zustand, Redux). 5. **Styling**: Use Tailwind CSS for styling. 6. **Interactions**: List any interactions such as clicks, form inputs, or animations. **Requirements**: - Ensure TypeScript types for all props. - Implement proper error handling mechanisms. - Include loading states if the component handles asynchronous operations. - Design the component to be responsive across different devices. - Maintain clean and well-documented code. Additionally, provide an example usage scenario for this component, demonstrating how it can be integrated into a larger application.
محسّن استعلامات SQL
هذا البرومبت مفيد لتحليل وتحسين استعلامات SQL المعقدة. يُستخدم عند الحاجة لتحسين أداء استعلامات قواعد البيانات الكبيرة وزيادة كفاءتها من خلال تحسينات محددة وتوجيهات واضحة.