I am pretty new to Flux and react, i understand how to store value through flux. I have stored value in some variables in store.js of flux. But i want to use that value in react component now, can anyone guide me, how to do that. I am trying like that Component file like this-
           AppActions.addItem(currentObject.username,currentObject.password);
            var test = AppStore.addChangeListener(this.action);
            console.log(test);
action is the value, which i am trying to call.
My Store.js Looks like this
  var AppStore = assign({}, EventEmitter.prototype, {
      emitChange: function () {
          this.emit(CHANGE_EVENT);
      }
   });
AppDispatcher.register(function (callback) {
    //console.log(username);
    //console.log(password);
    var action = callback.action;
    //console.log(action);
    return true;
});
Help me in this. thanks
 
     
    