Minor: context/theme-detailed-app.js broken (#746)

* Minor: context/theme-detailed-app.js broken

Today I tested out the new Context API using using [CRA](https://github.com/facebook/create-react-app). 
I encountered a runtime exception, so this tiny PR is intended to make it easier for future Context API learners.

`ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor`

create-react-app@next commit da518d2238298dd5db74e9c63c12251099f87bb0

* Update theme-detailed-app.js
This commit is contained in:
Pat
2018-03-30 23:07:34 +02:00
committed by Dan Abramov
parent 85f36661f7
commit e61d594b64

View File

@@ -12,6 +12,7 @@ function Toolbar(props) {
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
theme: themes.light,
};