Skip to content

Commit bda5286

Browse files
committed
Merge pull request enzymejs#100 from noahhendrix/patch-1
[docs] `this.state` > `this.props` for `setProps` example
2 parents 5616366 + e59bbbe commit bda5286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/ShallowWrapper/setProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
2828
class Foo extends React.Component {
2929
render() {
3030
return (
31-
<div className={this.state.name}/>
31+
<div className={this.props.name}/>
3232
);
3333
}
3434
}

0 commit comments

Comments
 (0)