Skip to content
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

Merged
merged 5 commits into from Aug 7, 2023
Merged

Conversation

tmtm8976
Copy link
Contributor

@tmtm8976 tmtm8976 commented Aug 4, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This 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)
Copy link
Collaborator

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) وهي ما تعادل قراءة الخصائص من عامل الدالة:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

التسمية التي وضعتها في السطر السابق (تحليل) أفضل من تدمير

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ممتاز جدًا
صححت بعض الأخطاء الطباعية غير المقصودة في التزامات commits من فضلك راجعيها

Copy link
Contributor Author

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

@AhmedBaset AhmedBaset merged commit 44911c5 into reactjs:main Aug 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants