React Flux Store: addChangeListener is not a function

Using React with Flux, you need to register a callback from your Component so that it can be called when the Store emits an event. For an ExampleComponent and ExampleStore, this might look like: class ExampleComponent extends Component { constructor(props) { super(props); } componentWillMount(){ ChatStore.on(‘change’, this.handleUserNameChange); } … } I’ve seen some examples where a …