From d0730690bdf9c3707732c1b0c3a0c4e5139d8469 Mon Sep 17 00:00:00 2001 From: Zoee Silcock Date: Sat, 9 May 2015 18:51:44 +0200 Subject: [PATCH] Don't use mixins since they are deprecated --- src/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.js b/src/app.js index e267214..0647737 100644 --- a/src/app.js +++ b/src/app.js @@ -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 {