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.
Redux Has Hooks
- June 27, 2019
- 10:19 pm