Skip to content

Commit 627b223

Browse files
authored
Adding translation to Special Props Warning (#694)
1 parent 3d25828 commit 627b223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/warnings/special-props.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Special Props Warning
2+
title: Advertencia de props especiales
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+
En un elemento JSX, la mayoría de las props se pasan al componente, pero hay dos props especiales (`ref` y `key`) que React utiliza y que no se transmiten al componente.
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+
Por ejemplo, no es posible acceder a `props.key` desde un componente. Si necesitas utilizar ese valor dentro del componente hijo, debes pasar el valor como una prop diferente (por ejemplo: `<ListItemWrapper key={result.id} id={result.id} />` y leer `props.id`). Aunque parezca redundante, es importante separar la lógica de la aplicación de las pistas para React.

0 commit comments

Comments
 (0)