Merged
Conversation
Collaborator
|
Please, translate the reference in the |
Contributor
Author
|
@A7med3bdulBaset in sidebarReference.json, the title field is the name of |
Collaborator
|
You are right. I'm sorry. |
Contributor
Author
Thanks 👍 |
AhmedBaset
approved these changes
Jun 1, 2023
src/content/reference/react/useId.md
Outdated
| --- | ||
|
|
||
| ## Usage {/*usage*/} | ||
| ## الإستخدام {/*usage*/} |
| @@ -96,7 +96,7 @@ In regular HTML, you would write it like this: | |||
| </p> | |||
Collaborator
There was a problem hiding this comment.
يفضل ترجمة النص داخل الكود
src/content/reference/react/useId.md
Outdated
| ``` | ||
|
|
||
| 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`: |
Collaborator
There was a problem hiding this comment.
كلمة React لا تحتاج لترجمة
Collaborator
There was a problem hiding this comment.
Please checkout my last commit to see edits
Collaborator
|
تم دمج الفرع |
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! 🙌 |
Contributor
Author
|
@A7med3bdulBaset |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.