https://github.com/yash-singh1/react-use-dispatch-multiple
React hook to dispatch multiple actions in Redux
https://github.com/yash-singh1/react-use-dispatch-multiple
Last synced: about 2 months ago
JSON representation
React hook to dispatch multiple actions in Redux
- Host: GitHub
- URL: https://github.com/yash-singh1/react-use-dispatch-multiple
- Owner: Yash-Singh1
- License: mit
- Created: 2021-07-28T18:55:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T16:13:03.000Z (over 1 year ago)
- Last Synced: 2025-02-10T14:23:08.339Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `react-use-dispatch-multiple`
A React Hook for dispatching multiple actions in Redux.
## Usage
```js
import { useDispatchMultiple } from "react-use-dispatch-multiple";const App = () => {
const dispatch = useDispatchMultiple();dispatch(
{ type: "ACTION1", info: "for action 1" },
{ type: "ACTION2", info: "for action 2" }
);
};
```