Skip to content

Commit 72d2823

Browse files
authored
Merge pull request #2838 from romanstetsyk/part2a-links
update links to react docs for part2a
2 parents 09d9eec + 1d99d9b commit 72d2823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/2/en/part2a.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Even though the application seems to be working, there is a nasty warning in the
213213

214214
![unique key prop console error](../../images/2/1a.png)
215215

216-
As the linked [React page](https://reactjs.org/docs/lists-and-keys.html#keys) in the error message suggests; the list items, i.e. the elements generated by the _map_ method, must each have a unique key value: an attribute called <i>key</i>.
216+
As the linked [React page](https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key) in the error message suggests; the list items, i.e. the elements generated by the _map_ method, must each have a unique key value: an attribute called <i>key</i>.
217217

218218
Let's add the keys:
219219

@@ -238,7 +238,7 @@ const App = (props) => {
238238

239239
And the error message disappears.
240240

241-
React uses the key attributes of objects in an array to determine how to update the view generated by a component when the component is re-rendered. More about this is in the [React documentation](https://reactjs.org/docs/reconciliation.html#recursing-on-children).
241+
React uses the key attributes of objects in an array to determine how to update the view generated by a component when the component is re-rendered. More about this is in the [React documentation](https://react.dev/learn/preserving-and-resetting-state#option-2-resetting-state-with-a-key).
242242

243243
### Map
244244

0 commit comments

Comments
 (0)