DEV Community

Discussion on: A Complete Guide to Redux

Collapse
 
strap8 profile image
Nathan Foster • Edited

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.