React and Redux error: “_react.default.createContext is not a function”

I’m adding Redux to an existing React app, converting from Flux to Redux. After wrapping my root component with the <Provider> I got this error and the app doesn’t initialize: _react.default.createContext is not a function Doing a quick search found this post suggesting I’ve got a mismatch in versions between newest Redux versions and possibly …

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 …