mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #2165 from DJCordhose/patch-1
Update 09.5-clone-with-props.md
This commit is contained in:
1 parent
fbb6e0caa7
commit
00c178f1d5
1 file changed
+1
@@ -18,3 +18,4 @@ Do a shallow copy of `component` and merge any props provided by `extraProps`. P
|
||||
> ```js
|
||||
> var clonedComponent = cloneWithProps(originalComponent, { key : originalComponent.props.key });
|
||||
> ```
|
||||
> `ref` is another prop that is not preserved either.
|
||||
Reference in new issue
Block a user