React Hook for accessing state and dispatch from a Redux store (deprecated in favor of react-redux hooks).
Redux React Hook is a library that provides custom React hooks for accessing Redux store state and dispatch functions within functional components. It allows developers to interact with Redux using the hooks API, offering an alternative to the `connect` higher-order component pattern. The project has been deprecated since React Redux v7.1 introduced official hooks support.
React developers using Redux who want to adopt hooks in functional components before React Redux officially supported them, or those seeking a lightweight hooks-based Redux integration.
It provided early access to a hooks-based Redux API with TypeScript/Flow support, simpler component patterns, and customizable equality checks for performance optimization, though it's now superseded by React Redux's built-in hooks.
React Hook for accessing state and dispatch from a Redux store
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provided a hooks-based Redux API before React Redux v7.1, enabling developers to modernize functional components with cleaner patterns ahead of official support.
Includes built-in TypeScript and Flow definitions, offering better typing for hooks compared to the connect HOC, which simplifies integration in typed codebases.
useMappedState allows optional equality functions like shallowequal, enabling fine-tuned performance optimization by preventing unnecessary re-renders.
The create() function facilitates isolated hook instances for multiple Redux stores or enhanced type contexts, as detailed in the README.
Project is officially deprecated since React Redux v7.1, meaning no updates, bug fixes, or security patches, making it unsuitable for new development.
Unlike React Redux, it doesn't ensure top-down updates, which the README admits can lead to potential rendering issues in complex component hierarchies.
Requires careful use of useCallback for mapState functions; improper handling can cause infinite re-renders, adding cognitive load and error risk.