Browse Source

Fixed typo / grammar docs

main
Seyi Adebajo 10 years ago
parent
commit
97f1a323b7
  1. 2
      docs/10.5-clone-with-props.md

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

@ -6,7 +6,7 @@ prev: test-utils.html
next: create-fragment.html
---
In rare situations a element may want to change the props of a element that it doesn't own (like changing the `className` of a element passed as `this.props.children`). Other times it may want to make multiple copies of a element passed to it. `cloneWithProps()` makes this possible.
In rare situations an element may want to change the props of an element that it doesn't own (like changing the `className` of an element passed as `this.props.children`). Other times it may want to make multiple copies of an element passed to it. `cloneWithProps()` makes this possible.
#### `ReactElement React.addons.cloneWithProps(ReactElement element, object? extraProps)`

Loading…
Cancel
Save