Skip to content

Commit

Permalink
Possible error in example.
Browse files Browse the repository at this point in the history
I think in this example the className attribute should contain the name prop rather than the state name.
  • Loading branch information
dbillingham committed Jan 22, 2016
1 parent 884d6f2 commit c71313d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/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 c71313d

Please sign in to comment.