You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react/index.md
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -106,16 +106,13 @@ Aby spriorytetyzować renderowanie, użyj jednego z tych hooków.
106
106
107
107
---
108
108
109
-
<<<<<<< HEAD
110
-
## Inne hooki {/*other-hooks*/}
111
-
=======
112
-
## Resource Hooks {/*resource-hooks*/}
109
+
## Hooki zasobów {/*resource-hooks*/}
113
110
114
-
*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.
111
+
Do *zasobów* można dostać się z poziomu komponentu bez konieczności tworzenia dla nich stanu lokalnego. Na przykład, komponent może odczytywać wiadomość z Obietnicy (*ang.* Promise) albo informacje o stylu z kontekstu.
115
112
116
-
To read a value from a resource, use this Hook:
113
+
Aby odczytać wartość z zasobu, użyj tego Hooka:
117
114
118
-
- [`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).
115
+
- [`use`](/reference/react/use) pozwala na odczytanie wartości zasobu, takiego jak [Obietnica (*ang.* Promise)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) lub [kontekst](/learn/passing-data-deeply-with-context).
119
116
120
117
```js
121
118
functionMessageComponent({ messagePromise }) {
@@ -127,8 +124,7 @@ function MessageComponent({ messagePromise }) {
127
124
128
125
---
129
126
130
-
## Other Hooks {/*other-hooks*/}
131
-
>>>>>>> 5219d736a7c181a830f7646e616eb97774b43272
127
+
## Inne hooki {/*other-hooks*/}
132
128
133
129
Te hooki przydają się zwykle tylko autorom bibliotek i nieczęsto spotyka się je w kodzie aplikacyjnym.
0 commit comments