You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improve the mapStateToProps to avoid allowing access to the whole object: what is actually really needed in the component?
make use of mapDispatchToProps correctly: do not use dispatch in the props, but rather map the real actions that are needed: increment, decrement and reset
The text was updated successfully, but these errors were encountered:
Problem 1
in logs, state in mapStateToProps is counter.js mapStateToProps --------- {counterReducer: {…}}counterReducer: counter: 0__proto__: Object__proto__: Object
what is really needed is just counter, not counter2.
Problem 2
Not enough time. Will look over weekend.
The text was updated successfully, but these errors were encountered: