Skip to content

Commit af7e309

Browse files
authored
Update index.md
1 parent aee3868 commit af7e309

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/content/reference/react/index.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,13 @@ function TodoList({ todos, tab, theme }) {
114114
115115
---
116116
117-
<<<<<<< HEAD
118-
## خطاطيف أخرى {/*other-hooks*/}
119-
=======
120-
## Resource Hooks {/*resource-hooks*/}
117+
## خطاطيف المصدر {/*resource-hooks*/}
121118
122-
*Resources* can be accessed by a component without having them as part of their state. For example, a component can read a message from a Promise or read styling information from a context.
119+
يستطيع المكون الوصول *للمصادر* دون امتلاكها كجزء من حالتهم. على سبيل المثال، يمكن للمكون قراء رسالة من وعد (Promise) أو قراءة معلومات التصميم من السياق (Context).
123120
124-
To read a value from a resource, use this Hook:
121+
لقراءة معلومة من مصدر استخدم هذا الخطاف:
125122
126-
- [`use`](/reference/react/use) lets you read the value of a resource like a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) or [context](/learn/passing-data-deeply-with-context).
123+
- [`use`](/reference/react/use) يسمح لك بقراء معلومة من مصدر مثل [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) أو [context](/learn/passing-data-deeply-with-context).
127124
128125
```js
129126
function MessageComponent({ messagePromise }) {
@@ -135,8 +132,8 @@ function MessageComponent({ messagePromise }) {
135132
136133
---
137134
138-
## Other Hooks {/*other-hooks*/}
139-
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
135+
136+
## خطاطيف أخرى {/*other-hooks*/}
140137
141138
هذه الخطاطيف مفيدة في الغالب لمؤلفي المكتبات ولا يتم استخدامها بشكل شائع في كود التطبيق.
142139

0 commit comments

Comments
 (0)