Skip to content

Commit 400df87

Browse files
noahhendrixchriscartlidge
authored andcommitted
this.state > this.props for setProps example
1 parent 20e3e0c commit 400df87

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)