diff --git a/README.md b/README.md index 2893680bfc8b4b..c8b05fc2de9c85 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ var SomeAwesomeComponent = React.createClass({ muiTheme: React.PropTypes.object }, - getChildContext() { + getChildContext: function() { return { muiTheme: ThemeManager.getCurrentTheme() }; diff --git a/docs/src/app/components/pages/get-started.jsx b/docs/src/app/components/pages/get-started.jsx index a1df5de7a7304d..db6e68fd6388ec 100644 --- a/docs/src/app/components/pages/get-started.jsx +++ b/docs/src/app/components/pages/get-started.jsx @@ -50,7 +50,7 @@ class GetStarted extends React.Component { ' childContextTypes: {\n' + ' muiTheme: React.PropTypes.object\n' + ' },\n\n' + - ' getChildContext() {\n' + + ' getChildContext: function() {\n' + ' return {\n' + ' muiTheme: ThemeManager.getCurrentTheme()\n' + ' };\n' +