Browse Source

Merge pull request #3089 from iamdanfox/fix-markdown-parsing-error-3075

Fix markdown parsing error
main
Paul O’Shannessy 10 years ago
parent
commit
3f7113739f
  1. 2
      docs/10.5-clone-with-props.md

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

@ -15,7 +15,9 @@ Do a shallow copy of `component` and merge any props provided by `extraProps`. T
> Note:
>
> `cloneWithProps` does not transfer `key` to the cloned component. If you wish to preserve the key, add it to the `extraProps` object:
>
> ```js
> var clonedComponent = cloneWithProps(originalComponent, { key : originalComponent.key });
> ```
>
> `ref` is similarly not preserved.

Loading…
Cancel
Save