Skip to content

Commit

Permalink
[docs] Fix missing props in css-in-js examples (#7867)
Browse files Browse the repository at this point in the history
* [docs] Fix missing props in css-in-js examples

`this.classes.root` wouldn't work - `this.props.classes.root' would.

* Update css-in-js.md
  • Loading branch information
Izhaki authored and oliviertassinari committed Aug 22, 2017
1 parent 099920c commit a0a4adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/customization/css-in-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const styles = {

class MyComponent extends Component {
render () {
return <div className={this.classes.root} />;
return <div className={this.props.classes.root} />;
}
}

Expand All @@ -123,7 +123,7 @@ const styles = {
@withStyles(styles)
class MyComponent extends Component {
render () {
return <div className={this.classes.root} />;
return <div className={this.props.classes.root} />;
}
}

Expand Down

0 comments on commit a0a4adb

Please sign in to comment.