|
1 | 1 | --- |
2 | | -title: React Reference Overview |
| 2 | +title: Обзор справочника React |
3 | 3 | --- |
4 | 4 |
|
5 | 5 | <Intro> |
6 | 6 |
|
7 | | -This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section. |
| 7 | +В этом разделе представлена подробная справочная документация по React. Если вы только начинаете знакомство с React, рекомендуем начать с раздела [Изучение](/learn). |
8 | 8 |
|
9 | 9 | </Intro> |
10 | 10 |
|
11 | | -The React reference documentation is broken down into functional subsections: |
| 11 | +Справочник разбит на несколько функциональных разделов: |
12 | 12 |
|
13 | 13 | ## React {/*react*/} |
14 | 14 |
|
15 | | -Programmatic React features: |
| 15 | +Основные возможности ядра React: |
16 | 16 |
|
17 | | -* [Hooks](/reference/react/hooks) - Use different React features from your components. |
18 | | -* [Components](/reference/react/components) - Built-in components that you can use in your JSX. |
19 | | -* [APIs](/reference/react/apis) - APIs that are useful for defining components. |
20 | | -* [Directives](/reference/rsc/directives) - Provide instructions to bundlers compatible with React Server Components. |
| 17 | +- [Хуки](/reference/react/hooks) — использование встроенных функций React в компонентах. |
| 18 | +- [Компоненты](/reference/react/components) — встроенные компоненты, доступные для использования в JSX. |
| 19 | +- [API](/reference/react/apis) — функции, полезные для определения компонентов. |
| 20 | +- [Директивы](/reference/rsc/directives) — инструкции для совместимых с серверными компонентами пакетов. |
21 | 21 |
|
22 | 22 | ## React DOM {/*react-dom*/} |
23 | 23 |
|
24 | | -React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: |
| 24 | +Пакет `react-dom` предоставляет функциональность, специфичную для веб-среды (браузера). Раздел включает: |
25 | 25 |
|
26 | | -* [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment. |
27 | | -* [Components](/reference/react-dom/components) - React supports all of the browser built-in HTML and SVG components. |
28 | | -* [APIs](/reference/react-dom) - The `react-dom` package contains methods supported only in web applications. |
29 | | -* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser). |
30 | | -* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server. |
| 26 | +- [Хуки](/reference/react-dom/hooks) — хуки, работающие в DOM-среде. |
| 27 | +- [Компоненты](/reference/react-dom/components) — поддержка всех стандартных HTML- и SVG-элементов как компонентов React. |
| 28 | +- [API](/reference/react-dom) — методы из пакета `react-dom`, доступные только в веб-приложениях. |
| 29 | +- [Клиентские API](/reference/react-dom/client) — API для рендеринга React-компонентов в браузере. |
| 30 | +- [Серверные API](/reference/react-dom/server) — API для рендеринга React-компонентов на сервере. |
31 | 31 |
|
32 | | -## Rules of React {/*rules-of-react*/} |
| 32 | +## Правила React {/*rules-of-react*/} |
33 | 33 |
|
34 | | -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 предъявляет определённые требования к структуре компонентов, чтобы код был понятным и приложения — надёжными: |
35 | 35 |
|
36 | | -* [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. |
37 | | -* [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. |
38 | | -* [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) — хуки — это особый тип логики интерфейса с ограничениями на место вызова. |
39 | 39 |
|
40 | | -## Legacy APIs {/*legacy-apis*/} |
| 40 | +## Устаревшие API {/*legacy-apis*/} |
41 | 41 |
|
42 | | -* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code. |
| 42 | +- [Устаревшие API](/reference/react/legacy) — экспортируются из пакета `react`, но не рекомендуются к использованию. |
0 commit comments