From 59fa2f44df58c9f79a86ae8ca0fb80207031f81f Mon Sep 17 00:00:00 2001 From: Dan Fox Date: Sun, 8 Feb 2015 11:31:48 +0000 Subject: [PATCH] Fix markdown parsing error closes #3075 --- docs/10.5-clone-with-props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/10.5-clone-with-props.md b/docs/10.5-clone-with-props.md index ed35d6ac4..4e688ed54 100644 --- a/docs/10.5-clone-with-props.md +++ b/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.