-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translating Passing Props to a Component #515
Conversation
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
* How to pass some JSX to a component | ||
* How props change over time | ||
* كيفية تمرير الخصائص (props) إلى مكوّنات(Components) | ||
* كيفية قراءة الخصائص (props) من مكوّن (Component) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
لا داعي لتكرار props وcomponents
المرة الأولى تكفي وبعدها نستخدم المصطلح العربي
|
||
```js | ||
function Avatar({ person, size }) { | ||
// ... | ||
} | ||
``` | ||
|
||
This syntax is called ["destructuring"](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Unpacking_fields_from_objects_passed_as_a_function_parameter) and is equivalent to reading properties from a function parameter: | ||
هذه الصيغة تسمى ["تدمير"](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Unpacking_fields_from_objects_passed_as_a_function_parameter) وهي ما تعادل قراءة الخصائص من عامل الدالة: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
التسمية التي وضعتها في السطر السابق (تحليل) أفضل من تدمير
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ممتاز جدًا
صححت بعض الأخطاء الطباعية غير المقصودة في التزامات commits من فضلك راجعيها
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked your correction, thank you. I'm willing to translate more pages soon
No description provided.