From 606c4e1e17dac30523d795a012250e0e810c2902 Mon Sep 17 00:00:00 2001 From: Izhaki Date: Tue, 22 Aug 2017 22:03:43 +0100 Subject: [PATCH 1/2] [docs] Fix missing props in css-in-js examples `this.classes.root` wouldn't work - `this.props.classes.root' would. --- docs/src/pages/customization/css-in-js.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/customization/css-in-js.md b/docs/src/pages/customization/css-in-js.md index 0132fb394e2f02..18bf4030516328 100644 --- a/docs/src/pages/customization/css-in-js.md +++ b/docs/src/pages/customization/css-in-js.md @@ -102,7 +102,8 @@ const styles = { class MyComponent extends Component { render () { - return
; + {classes} = this.props; + return
; } } @@ -123,7 +124,8 @@ const styles = { @withStyles(styles) class MyComponent extends Component { render () { - return
; + {classes} = this.props; + return
; } } From a6acd284c8d35fb25d11e40e47e75e6a5c8ddec4 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 22 Aug 2017 23:17:04 +0200 Subject: [PATCH 2/2] Update css-in-js.md --- docs/src/pages/customization/css-in-js.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/src/pages/customization/css-in-js.md b/docs/src/pages/customization/css-in-js.md index 18bf4030516328..b5e7b985b6281e 100644 --- a/docs/src/pages/customization/css-in-js.md +++ b/docs/src/pages/customization/css-in-js.md @@ -102,8 +102,7 @@ const styles = { class MyComponent extends Component { render () { - {classes} = this.props; - return
; + return
; } } @@ -124,8 +123,7 @@ const styles = { @withStyles(styles) class MyComponent extends Component { render () { - {classes} = this.props; - return
; + return
; } }