Open tnrich opened 3 years ago
Just a heads up that the following is incorrect (on the page https://www.peanutbutterjavascript.com/posts/mastering-mergeprops-in-redux):
what is canonically called "ownProps" should come after the other two arguments:
https://react-redux.js.org/api/connect#mergeprops-stateprops-dispatchprops-ownprops--object
You should update your example to not confuse people :)
Thanks!
I wish I have seen that before wasting 2 hours relying on erroneous example :) :)
Just a heads up that the following is incorrect (on the page https://www.peanutbutterjavascript.com/posts/mastering-mergeprops-in-redux):
what is canonically called "ownProps" should come after the other two arguments:
https://react-redux.js.org/api/connect#mergeprops-stateprops-dispatchprops-ownprops--object
You should update your example to not confuse people :)
Thanks!