mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2165 from DJCordhose/patch-1
Update 09.5-clone-with-props.md
This commit is contained in:
@@ -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