Hello coders!! Today we will discuss some concepts you need to know to build real complex applications with React and Redux.
In this article we'll...
For further actions, you may consider blocking this person and/or reporting abuse
Hey, great introduction for beginners.
Since you are calling this a complete guide (not a "first look"), you might want to consider the following naggy points (not sure if appreciated or not):
mapXToPropsis superceded byuseSelectoranduseDispatchhooksuseState, unless you have a very good reason to. You want to keep your state management cleanly separated from your components. That is why people (claim to) use Redux in the first place. (Although this inconsistency is prevailant in many production code bases.)reduxwas developed to help you avoid, including keeping things separate, modular and in "flux". Here is some possible inspiration: redux.js.org/style-guide/style-guideGood luck! Keep on hacking!
I agree with all your points expect the first. The useSelector hook does not give you memoization out of the box like the connect API does. The useSelector uses strict equality while the connect API checks for reference changes between the previous and next props. To achieve the same functionality with the useSelector hook, you can wrap your component with the React.memo HOC.
@domiii Thank you for your feedback. I'll surely look into it!!
Awesome, thank you for your posting.
I'm glad you find it useful!!
Nowadays Redux rarely if ever used without Redux Toolkit or Saga, so i'd say one would not call a guide complete without at least touching those subject.
Apart from that, great job.
this is awesome, keep it up...
Thank you!!
Nice one Anuradha, Would have been better if you could explain why exactly middleware we need
Thank You