follow docs convention for notes
WickyNilliams committed
Jul 21, 2014 at 17:11 UTC
ee325eb5d5fbb91de7e6bbd7cfab4e7d30287821
1 file changed
+6
-5
docs/docs/09.5-clone-with-props.md
+6
-5
@@ -13,8 +13,9 @@ In rare situations a component may want to change the props of a component that
13
14
Do a shallow copy of `component` and merge any props provided by `extraProps`. Props are merged in the same manner as [`transferPropsTo()`](/react/docs/component-api.html#transferpropsto), so props like `className` will be merged intelligently.
15
16
-**NOTE:** `cloneWithProps` does not transfer the `key` prop to the cloned component. If you wish to preserve the key, add it to the `extraProps` object:
17
-
18
-```js
19
-var clonedComponent = cloneWithProps(originalComponent, { key : originalComponent.props.key });
20
-```
16
+> Note:
17
+>
18
+> `cloneWithProps` does not transfer the `key` prop to the cloned component. If you wish to preserve the key, add it to the `extraProps` object:
19
+> ```js
20
+> var clonedComponent = cloneWithProps(originalComponent, { key : originalComponent.props.key });
21
+> ```