-
Notifications
You must be signed in to change notification settings - Fork 158
translation of responding to events #346
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
Conversation
* How events propagate and how to stop them | ||
* روش های مختلف برای نوشتن یک event handler | ||
* نحوه انتقال منطق مدیریت رویداد از کامپوننت پدر | ||
* نحوه انتشار رویدادها و چگونگی توقف آنها |
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.
برای قاطی نشدن فرمت فارسی و انگلیسی از تگ
'ltr' استفاده کنین
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.
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.
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: [email protected] |
@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.
***@***.***>
|
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.
فقط همون فرمت چپ به راست رو اوکی کنی تموم میشه! عالی
|
||
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 مناسب پاس میدهید. به عنوان مثال، در اینجا دکمه ای وجود دارد که هنوز هیچ کاری انجام نمی دهد: | ||
|
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.
keep it up!
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the Right to left showing correctly?
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.
yesss. do you think it has a problem?
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.
if you saw in the vs code, I don't think so. can you please attach a screen shot if possible?
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.
فکر کنم بهتره فایل رو با فرمت 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.
***@***.***>
|
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.
اگر تجربیات خودتون رو توی دیسکریپشن بنویسید برای بقیه خیلی ممنون میشم. تا بقیه هم به این مشکلات برنخورند. مثلا توضیحات همین 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 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! 🙌 |
No description provided.