Redux Has Hooks

Today the react-redux team released version 7.1.0, which adds hooks to react-redux! Here’s a quick comparison of how it could change how you write components. First, A Brief Overview of The New Toys useSelector: Pass in a function that takes the state as an argument and returns a value.

Source: Redux Now Has Hooks. A Before and After Comparison

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp