Skip to content

Commit

Permalink
[docs] Fix missing props in css-in-js examples (mui#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 rosskevin committed Aug 23, 2017
1 parent a19dfcc commit 752818d
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 React.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 React.Component {
render () {
return <div className={this.classes.root} />;
return <div className={this.props.classes.root} />;
}
}

Expand Down

0 comments on commit 752818d

Please sign in to comment.