Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea71d21

Browse files
committed
Merge pull request facebook#3089 from iamdanfox/fix-markdown-parsing-error-3075
Fix markdown parsing error
1 parent 8f8e971 commit ea71d21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/docs/10.5-clone-with-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Do a shallow copy of `component` and merge any props provided by `extraProps`. T
1515
> Note:
1616
>
1717
> `cloneWithProps` does not transfer `key` to the cloned component. If you wish to preserve the key, add it to the `extraProps` object:
18+
>
1819
> ```js
1920
> var clonedComponent = cloneWithProps(originalComponent, { key : originalComponent.key });
2021
> ```
22+
>
2123
> `ref` is similarly not preserved.

0 commit comments

Comments
 (0)