useId page translation by remahmoud · Pull Request #483 · reactjs/ar.react.dev

@remahmoud

@remahmoud

@AhmedBaset

Please, translate the reference in the src/sidebar reference.json for your page.

@remahmoud

@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

@AhmedBaset

You are right. I'm sorry.

@remahmoud

You are right. I'm sorry.

Thanks 👍

@AhmedBaset

AhmedBaset

---

## 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

@AhmedBaset

تم دمج الفرع
ترجمتك ممتازة
يمكنك أخذ صفحة أخرى الآن

@github-actions

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! 🙌

@remahmoud