Skip to content

Instantly share code, notes, and snippets.

@floydprice
Created March 10, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floydprice/d04c053ef805544c1af8 to your computer and use it in GitHub Desktop.
Save floydprice/d04c053ef805544c1af8 to your computer and use it in GitHub Desktop.
diff --git a/app/demo/components/App.jsx b/app/demo/components/App.jsx
index 97f1917..7cc4836 100644
--- a/app/demo/components/App.jsx
+++ b/app/demo/components/App.jsx
@@ -59,10 +59,6 @@ class App extends React.Component {
this.resetTheme = this.resetTheme.bind(this)
}
- static childContextTypes = {
- rebass: React.PropTypes.object
- }
-
getChildContext () {
return {
rebass: this.state
@@ -160,5 +156,10 @@ class App extends React.Component {
}
}
+App.childContextTypes = {
+ name: React.PropTypes.object
+}
+
+
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment