Skip to content

Commit

Permalink
this.state > this.props for setProps example
Browse files Browse the repository at this point in the history
  • Loading branch information
noahhendrix committed Jan 6, 2016
1 parent 5616366 commit e59bbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/setProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
class Foo extends React.Component {
render() {
return (
<div className={this.state.name}/>
<div className={this.props.name}/>
);
}
}
Expand Down

0 comments on commit e59bbbe

Please sign in to comment.