Skip to content

Commit

Permalink
Don't use mixins since they are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeesilcock committed May 9, 2015
1 parent 8ef2e67 commit d073069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import PeopleStore from './stores/people_store';
import TimerStore from './stores/timer_store';

const App = React.createClass({
mixins: [
Reflux.listenTo(PeopleStore, 'onPeopleChange'),
Reflux.listenTo(TimerStore, 'onTimerChange')
],
componentWillMount() {
PeopleStore.listen(this.onPeopleChange);
TimerStore.listen(this.onTimerChange);
},

getInitialState() {
return {
Expand Down

0 comments on commit d073069

Please sign in to comment.