Skip to content

Commit a8dcd80

Browse files
docs: translate special-props.md to Русский
1 parent 2958f53 commit a8dcd80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/warnings/special-props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
title: Special Props Warning
33
---
44

5-
Most props on a JSX element are passed on to the component, however, there are two special props (`ref` and `key`) which are used by React, and are thus not forwarded to the component.
5+
Большинство пропсов в JSX-элементе передаются в компонент, однако есть два специальных пропса (`ref` и `key`), которые используются React и поэтому не передаются в компонент.
66

7-
For instance, you can't read `props.key` from a component. If you need to access the same value within the child component, you should pass it as a different prop (ex: `<ListItemWrapper key={result.id} id={result.id} />` and read `props.id`). While this may seem redundant, it's important to separate app logic from hints to React.
7+
Например, вы не можете прочитать `props.key` из компонента. Если вам нужно получить доступ к тому же значению внутри дочернего компонента, вы должны передать его как другой пропс (например: `<ListItemWrapper key={result.id} id={result.id} />` и читать `props.id`). Хотя это может показаться избыточным, важно отделять логику приложения от подсказок для React.

0 commit comments

Comments
 (0)