React Redux gave support for Hooks in version 7.1 which was released on the 11th of June, 2019. It means that you can use Redux with Hooks in your functional component instead of using connecthigher-order components (HOC).
What Are Hooks?
Just to refresh a little about Hooks, Hooks were introduced in React version 16.8 and they allow you to access state and life cycle methods in functional components.
Let’s have a look at an example.
A React class component like this:
Published On: March 1st, 2020 / Categories: Blogs /