Skip to content

Instantly share code, notes, and snippets.

@floydprice
Created March 10, 2016 15:15
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