import {Dispatcher} from 'flux';// 参照storeimport Store from '../stores/TodoStore';const TodoDispatcher=new Dispatcher();TodoDispatcher.regeist(function(action){ switch (action.actionType) { case "ADD_TODO": Store.addTodoData(action.payload); Store.emitChange(); //调用store break; デフォルト: //その他处理 break; }})export default TodoDispatcher;