onGameChange.js 229 B

12345678910
  1. const GameStore = require('../stores/GameStore');
  2. module.exports = {
  3. componentDidMount() {
  4. GameStore.on('change', this._onGameChange);
  5. },
  6. componentWillUnmount() {
  7. GameStore.off('change', this._onGameChange);
  8. }
  9. };