translation of responding to events#346
Conversation
| * How events propagate and how to stop them | ||
| * روش های مختلف برای نوشتن یک event handler | ||
| * نحوه انتقال منطق مدیریت رویداد از کامپوننت پدر | ||
| * نحوه انتشار رویدادها و چگونگی توقف آنها |
There was a problem hiding this comment.
برای قاطی نشدن فرمت فارسی و انگلیسی از تگ
'ltr' استفاده کنین
There was a problem hiding this comment.
faeghe-hajiabadi
left a comment
There was a problem hiding this comment.
thank you and please help to fix the needed changes. see you in next pr for same files ;)
|
Please send me any questions on my email: Faeghe.hajiabadi@gmail.com |
|
@sr-ssh |
ممنون از اینکه وقت گذاشتین و پی ار رو چک کردین. در صورتی که علاقه دارین به عنوان فعالیت کنید به من ایمیلی ارسال کنید تا با ریاکت برای این کار مشورت کنم. |
|
سلام سلام
حتما که درنهایت کس دیگه ای باید مرج کنه اما نکته ی ریوو کلا یادگیری هستش که
بچهها تگ بزنن روی هر قسمت و فلان و این طبیعت کار اپن سورس هست به نظرم، اگر
پی آری فقط نیاز به تایید داره بهم بگید توی ایمیل جدا من حتما اوکی میکنم و
صفحه ای که برای من هست هم بگید لطفا
…On Mon, 7 Aug 2023 at 4:00 PM, Abolfazl Rezvani Naraqi < ***@***.***> wrote:
Please send me any questions on my email: ***@***.*** I'll
be available most working days
ممنون از اینکه وقت گذاشتین و پی ار رو چک کردین.
اما عملا این کار شما بی فایده است چون در نهایت یکی از نگهدارندگان باید
بررسی و مرج کنه. حتی خود من هم اگر ترجمه انجام بدم فرد دیگری از
نگهدارندگان باید اونو بررسی کنه. به جای آن میتوانید روی ترجمه کنونی
خودتان کار کنید و پس از آن یک صفحه دیگر را برای ترجمه انتخاب کنید.
در صورتی که علاقه دارین به عنوان فعالیت کنید به من ایمیلی ارسال کنید تا با
ریاکت برای این کار مشورت کنم.
—
Reply to this email directly, view it on GitHub
<#346 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMIJBKZJZAI4DXTMDTI5WTXUCOCXANCNFSM6AAAAAA3FARXHE>
.
You are receiving this because you were mentioned.Message ID: <reactjs/fa.
***@***.***>
|
faeghe-hajiabadi
left a comment
There was a problem hiding this comment.
فقط همون فرمت چپ به راست رو اوکی کنی تموم میشه! عالی
|
|
||
| To add an event handler, you will first define a function and then [pass it as a prop](/learn/passing-props-to-a-component) to the appropriate JSX tag. For example, here is a button that doesn't do anything yet: | ||
| برای افزودن یک event handler، ابتدا یک تابع تعریف میکنید و سپس [آن را به عنوان props](/learn/passing-props-to-a-component) به تگ JSX مناسب پاس میدهید. به عنوان مثال، در اینجا دکمه ای وجود دارد که هنوز هیچ کاری انجام نمی دهد: | ||
|
|
faeghe-hajiabadi
left a comment
There was a problem hiding this comment.
nice and thank you
| You can make it show a message when a user clicks by following these three steps: | ||
| 1. تابعی به نام `handleClick` *در داخل* کامپوننت `Button` خود تعریف کنید. | ||
| 2. منطق را در داخل آن تابع پیاده سازی کنید (از `alert` برای نمایش پیام استفاده کنید). | ||
| 3. `onClick={handleClick}` را به JSX المنت `<button>` اضافه کنید. |
There was a problem hiding this comment.
is the Right to left showing correctly?
There was a problem hiding this comment.
yesss. do you think it has a problem?
There was a problem hiding this comment.
if you saw in the vs code, I don't think so. can you please attach a screen shot if possible?
|
فکر کنم بهتره فایل رو با فرمت md ذخیره کنی و توی کروم خرجی بگیری 🙏 اما به
نظرم درسته
…On Mon, Aug 21, 2023 at 1:53 PM sr-ssh ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/content/learn/responding-to-events.md
<#346 (comment)>:
>
-You can make it show a message when a user clicks by following these three steps:
+1. تابعی به نام `handleClick` *در داخل* کامپوننت `Button` خود تعریف کنید.
+2. منطق را در داخل آن تابع پیاده سازی کنید (از `alert` برای نمایش پیام استفاده کنید).
+3. `onClick={handleClick}` را به JSX المنت `<button>` اضافه کنید.
in vs code, it is in this way:
[image: Screenshot 1402-05-30 at 09 19 09]
<https://user-images.githubusercontent.com/72304600/261930815-fcb0ebcd-b91f-4ca0-add5-35fc00c7ac97.png>
but in my localhost, it shows right:
[image: Screenshot 1402-05-30 at 09 18 01]
<https://user-images.githubusercontent.com/72304600/261930899-bc30bd2c-36f8-490f-b105-85dd6afe117c.png>
what should I do now?
—
Reply to this email directly, view it on GitHub
<#346 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMIJBPIDSEIUOMVY5XWZ6LXWLZU3ANCNFSM6AAAAAA3FARXHE>
.
You are receiving this because you were mentioned.Message ID: <reactjs/fa.
***@***.***>
|
faeghe-hajiabadi
left a comment
There was a problem hiding this comment.
اگر تجربیات خودتون رو توی دیسکریپشن بنویسید برای بقیه خیلی ممنون میشم. تا بقیه هم به این مشکلات برنخورند. مثلا توضیحات همین pr
|
This pr contains Farsi translations for the page: 'translation of responding to events' by @sr-ssh |
|
سلام خسته نباشید
دیسکریپشن کجا منظورتونه؟
…On Thu, Aug 24, 2023 at 7:48 AM Anna Abadi ***@***.***> wrote:
***@***.**** approved this pull request.
اگر تجربیات خودتون رو توی دیسکریپشن بنویسید برای بقیه خیلی ممنون میشم. تا
بقیه هم به این مشکلات برنخورند. مثلا توضیحات همین pr
—
Reply to this email directly, view it on GitHub
<#346 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARHUPWGQSWV45RIFAUZ32YDXW3IY7ANCNFSM6AAAAAA3FARXHE>
.
You are receiving this because you were mentioned.Message ID: <reactjs/fa.
***@***.***>
|
please raise the pull request again, so we can merge! |
unnecessary div tags
Size changesDetails📦 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! 🙌 |


No description provided.