Skip to content

Conversation

@aladin002dz
Copy link
Member

Nothing to submit yet, Just to reserve the "handling event" page.

@asantarissy asantarissy changed the title Translating 'handling events' Translating handling-events.md Feb 23, 2019
@aladin002dz aladin002dz changed the title Translating handling-events.md Translating 'handling-events.md' Feb 23, 2019
@netlify
Copy link

netlify bot commented Feb 23, 2019

Deploy preview for ar-reactjs ready!

Built with commit 8797662

https://deploy-preview-21--ar-reactjs.netlify.com

Copy link
Member

@asantarissy asantarissy left a comment

Choose a reason for hiding this comment

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

I have only one comment this time 😅
Great job @aladin002dz, please check my comment so I can merge this PR.


Here, `e` is a synthetic event. React defines these synthetic events according to the [W3C spec](https://www.w3.org/TR/DOM-Level-3-Events/), so you don't need to worry about cross-browser compatibility. See the [`SyntheticEvent`](/docs/events.html) reference guide to learn more.
يُمثِّل المتغيّر `e` هنا حدثًا مُصطنعًا، حيث تُعرِّف React هذه الأحداث المُصطنعة وفق معايير [W3C spec](https://www.w3.org/TR/DOM-Level-3-Events/)، بحيث لا نهتم بمشاكل التوافقيّة بين المتصفحات. للمزيد حول [`الأحداث المصطنعة`](/docs/events.html) انتقل إلى مرجع الأحداث في React.
ينبغي بشكل عام عند استخدام React ألّا تحتاج إلى استدعاء `addEventListener` لإضافة مُستمِع للأحداث إلى عنصر DOM بعد إنشائه، وبدلًا من ذلك نُضيف مُستمِعًا للأحداث عند تصيير العنصر (Rendering Element).
Copy link
Member

Choose a reason for hiding this comment

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

Please add an enter before this paragraph, and what do you think of this translation:

عند استخدام React بشكل عام لاينبغي استدعاء addEventListener لإضافة مُستمِع للأحداث إلى عنصر DOM بعد إنشائه، وبدلًا من ذلك نُضيف مُستمِعًا للأحداث عند تصيير العنصر (Rendering Element).

@asantarissy asantarissy merged commit c00d1b6 into reactjs:master Feb 24, 2019
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.

2 participants