Uh oh!
There was an error while loading. Please reload this page.
Lists and Keys Translation - #22
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| No recomendamos usar índices para keys si el orden de los ítems puede cambiar. Esto puede impactar negativamente el rendimiento y puede causar problemas con el estado del componente. Revisa el árticulo de Robin Pokorny para una [explicación en profundidad de los impactos negativos de usar un índice como key](https://medium.com/@robinpokorny/index-as-a-key-is-an-anti-pattern-e0349aece318). Si eliges no asignar una key explícita a la lista de items, React por defecto usara índices como keys. | ||
| Aqui esta una [explicacion en profundidad sobre porque las keys son necesarias](/docs/reconciliation.html#recursing-on-children) si estas interesado en aprender mas. | ||
| Aquí esta una [explicación en profundidad sobre porque las keys son necesarias](/docs/reconciliation.html#recursing-on-children) si estas interesado en aprender más. |
There was a problem hiding this comment.
In the original text it is Here is, so for me it should be Aquí está .
It should be Here there is to be translated in Aquí hay in my opinion. What do you think?
Uh oh!
There was an error while loading. Please reload this page.
| Las keys solo tienen sentido en el contexto de un array circundante. | ||
| For example, if you [extract](/docs/components-and-props.html#extracting-components) a `ListItem` component, you should keep the key on the `<ListItem />` elements in the array rather than on the `<li>` element in the `ListItem` itself. | ||
| Por ejemplo, si [extraes](/docs/components-and-props.html#extracting-components) un componente `ListItem`, debes mantener la key en el elemnto `<ListItem />` en el array en lugar de en el elemento `<li>` en el `ListItem` en si mismo. |
There was a problem hiding this comment.
I think this can be better translated this way:
... debes mantener la key en los elementos
<ListItem />en el array en lugar de en los elementos<li>en elListItemen sí.
Regardless of that, note elemnto before <ListItem />, it should be elemento/s
Note
There was a problem hiding this comment.
IMO
...derberias mantener la key en los elementos
<ListItem />en el array en lugar de en el elemento<li>en el<ListItem />en si mismo.
Sounds better. What do you think?
Uh oh!
There was an error while loading. Please reload this page.
| const value = props.value; | ||
| return ( | ||
| // Wrong! There is no need to specify the key here: | ||
| // Mal! No es necesario especificar la key aquí: |
There was a problem hiding this comment.
My suggestion: // Mal! Aquí no es necesario especificar la key:
There was a problem hiding this comment.
@gariasf what about No hay necesidad de especificar la key
| const numbers = props.numbers; | ||
| const listItems = numbers.map((number) => | ||
| // Wrong! The key should have been specified here: | ||
| // Mal! La key debería haber sido especificada aquí: |
There was a problem hiding this comment.
My suggestion: // Mal! Aquí la key debería haber sido especificada:
| ```javascript{2,3,9,10} | ||
| function ListItem(props) { | ||
| // Correct! There is no need to specify the key here: | ||
| // Correcto! No hay necesidad de especificar la key aquí: |
There was a problem hiding this comment.
My suggestion: // Correcto! Aquí no hay necesidad de especificar la key:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gariasf
commented
Feb 2, 2019
Hey! I left some reviews on the first commit and GitHub marks them as "outdated", but they are new nonetheless. |
EzequielMonforte
commented
Feb 5, 2019
I've done some corrections. Please tell me if there is something else to correct |
There was a problem hiding this comment.
Hi, @EzequielMonforte. Judging by your comment I think you closed the PR by mistake. I made some suggestions and fix some typos. Thank you for your contribution!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
Co-Authored-By: EzequielMonforte <ezequielmonforte@gmail.com>
EzequielMonforte
commented
Feb 5, 2019
Thanks @carburo ! I've applied some of your suggestions |
carburo
commented
Feb 5, 2019
Looks good to me. Merging 🚀 |
#18
Need help translating words :
IDs, array, keys