From ea71d21159f00d2a95fd04f77980fb600af6e230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Mon, 9 Feb 2015 10:12:17 -0800 Subject: [PATCH] Merge pull request #3089 from iamdanfox/fix-markdown-parsing-error-3075 Fix markdown parsing error --- docs/docs/10.5-clone-with-props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/10.5-clone-with-props.md b/docs/docs/10.5-clone-with-props.md index ed35d6ac4a..4e688ed547 100644 --- a/docs/docs/10.5-clone-with-props.md +++ b/docs/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.