survivejs / react-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/react/introduction/
2.02k stars 366 forks source link

Fix Link to React Docs, and Clarify use of Keys by React #428

Closed TomV closed 8 years ago

TomV commented 8 years ago

I've updated the link to react docs since the current link now gets redirected to a different topic.

Also, while reading the react docs, it seems clearer to say that react uses keys to track changes in collections, rather than to determine the order of rendering. Ultimately, the change sets do determine the order of rendering... but this seems clearer.

Per the react documentation on keys:

Keys help React identify which items have changed, are added, or are removed. Keys should be given to the elements inside the array to give the elements a stable identity

bebraw commented 8 years ago

Awesome! Thanks for the fixes.

Sorry for the delay. I've been traveling a bit. 👍