useId page translation by remahmoud · Pull Request #483 · reactjs/ar.react.dev
@A7med3bdulBaset in sidebarReference.json, the title field is the name of useId hook and it can't be translated. If I'm confused or I'm wrong, you can explain to me
| --- | ||
|
|
||
| ## Usage {/*usage*/} | ||
| ## الإستخدام {/*usage*/} |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
الاستخدام بهمزة وصل
| @@ -96,7 +96,7 @@ In regular HTML, you would write it like this: | |||
| </p> | |||
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
يفضل ترجمة النص داخل الكود
| ``` | ||
|
|
||
| However, hardcoding IDs like this is not a good practice in React. A component may be rendered more than once on the page--but IDs have to be unique! Instead of hardcoding an ID, generate a unique ID with `useId`: | ||
| مع ذلك، تضمين المعرفات بهذا الشكل ليس طريقة جيدة في ريأكت. يمكن أن يتم عرض المكون أكثر من مرة على الصفحة ولكن يجب أن تكون المعرفات فريدة! بدلا من تضمين معرف ثابت، يمكنك توليد معرف فريد باستخدام `useId`: |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
كلمة React لا تحتاج لترجمة
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please checkout my last commit to see edits
Size changes
Details
📦 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! 🙌
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters