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
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,18 +29,14 @@ React-dom змяшчае функцыі, якія падтрымліваюцца
29
29
*[Кліенцкія API](/reference/react-dom/client) - API з пакета `react-dom/client` дазваляюць рэндэрыць кампаненты React на кліенце (у браўзеры).
30
30
*[Серверныя API](/reference/react-dom/server) - API з пакета `react-dom/server` дазваляюць рэндэрыць кампаненты React у HTML на серверы.
31
31
32
-
<<<<<<< HEAD
33
-
## Устарэлыя API {/*legacy-apis*/}
34
-
=======
35
-
## Rules of React {/*rules-of-react*/}
32
+
## Правілы React {/*rules-of-react*/}
36
33
37
-
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:
34
+
У React ёсць ідыёмы (або правілы) для выражэння патэрнаў такім чынам, каб іх было лёгка зразумець і атрымаць якасныя праграмы:
38
35
39
-
*[Components and Hooks must be pure](/reference/rules/components-and-hooks-must-be-pure)– Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly.
40
-
*[React calls Components and Hooks](/reference/rules/react-calls-components-and-hooks) – React is responsible for rendering components and hooks when necessary to optimize the user experience.
41
-
*[Rules of Hooks](/reference/rules/rules-of-hooks) – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called.
36
+
*[Кампаненты і хукі павінны быць чыстымі](/reference/rules/components-and-hooks-must-be-pure)— Чысціня спрашчае разуменне і адладку вашага кода і дазваляе React аўтаматычна і правільна аптымізаваць вашыя кампаненты і хукі.
37
+
*[React выклікае кампаненты і хукі](/reference/rules/react-calls-components-and-hooks) – React адказвае за рэндэрынг кампанентаў і хукаў, калі гэта неабходна для аптымізацыі карыстальніцкага вопыту.
38
+
*[Правілы хукаў](/reference/rules/rules-of-hooks) – Хукі вызначаюцца з дапамогай JavaScript функцый, але яны ўяўляюць сабой адмысловы тып UI логікі прыдатнай да паўторнага выкарыстання з абмежаваннямі на тое, дзе яны могуць быць выкліканыя.
42
39
43
-
## Legacy APIs {/*legacy-apis*/}
44
-
>>>>>>> f55d9487c6648570fc80f1421d7dca0a3b9b94b6
40
+
## Устарэлыя API {/*legacy-apis*/}
45
41
46
42
*[Устарэлыя API](/reference/react/legacy) - API экспартаваныя з пакета React, але не рэкамендуюцца для выкарыстання ў нядаўна напісаным кодзе.
0 commit comments