Skip to content

Commit de6f0af

Browse files
authoredMar 20, 2023
fix: fix broken link in cloneElement.md (#5766)
1 parent 8e4f8c5 commit de6f0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/content/reference/react/cloneElement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Usually, you'll return the element from your component or make it a child of ano
7070

7171
* You should only **pass children as multiple arguments to `cloneElement` if they are all statically known,** like `cloneElement(element, null, child1, child2, child3)`. If your children are dynamic, pass the entire array as the third argument: `cloneElement(element, null, listItems)`. This ensures that React will [warn you about missing `key`s](/learn/rendering-lists#keeping-list-items-in-order-with-key) for any dynamic lists. For static lists this is not necessary because they never reorder.
7272

73-
* `cloneElement` makes it harder to trace the data flow, so **try the [alternatives](/#alternatives) instead.**
73+
* `cloneElement` makes it harder to trace the data flow, so **try the [alternatives](#alternatives) instead.**
7474

7575
---
7676

0 commit comments

Comments
 (0)
Please sign in to comment.