diff --git a/src/content/reference/react-dom/components/link.md b/src/content/reference/react-dom/components/link.md index 41236eb3dc..64cac08dc1 100644 --- a/src/content/reference/react-dom/components/link.md +++ b/src/content/reference/react-dom/components/link.md @@ -1,10 +1,9 @@ --- link: "" --- - -The [built-in browser `` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link) lets you use external resources such as stylesheets or annotate the document with link metadata. +Встроенный браузерный компонент [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link) позволяет использовать внешние ресурсы, такие как таблицы стилей, или аннотировать документ метаданными ссылок. ```js @@ -16,94 +15,94 @@ The [built-in browser `` component](https://developer.mozilla.org/en-US/do --- -## Reference {/*reference*/} +## Справочник {/*reference*/} ### `` {/*link*/} -To link to external resources such as stylesheets, fonts, and icons, or to annotate the document with link metadata, render the [built-in browser `` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link). You can render `` from any component and React will [in most cases](#special-rendering-behavior) place the corresponding DOM element in the document head. +Для ссылки на внешние ресурсы, такие как таблицы стилей, шрифты и значки, или для аннотирования документа метаданными ссылок, используйте встроенный браузерный компонент [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link). Вы можете рендерить `` из любого компонента, и React в большинстве случаев поместит соответствующий DOM-элемент в `` документа. ```js ``` -[See more examples below.](#usage) +[См. больше примеров ниже.](#usage) -#### Props {/*props*/} +#### Пропсы {/*props*/} -`` supports all [common element props.](/reference/react-dom/components/common#props) +`` поддерживает все [общие пропсы элементов.](/reference/react-dom/components/common#props) -* `rel`: a string, required. Specifies the [relationship to the resource](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel). React [treats links with `rel="stylesheet"` differently](#special-rendering-behavior) from other links. +* `rel`: строка, обязательный. Указывает [отношение к ресурсу](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel). React обрабатывает ссылки с `rel="stylesheet"` иначе, чем другие ссылки. -These props apply when `rel="stylesheet"`: +Эти пропсы применяются, когда `rel="stylesheet"`: -* `precedence`: a string. Tells React where to rank the `` DOM node relative to others in the document ``, which determines which stylesheet can override the other. React will infer that precedence values it discovers first are "lower" and precedence values it discovers later are "higher". Many style systems can work fine using a single precedence value because style rules are atomic. Stylesheets with the same precedence go together whether they are `` or inline `