An open API service indexing awesome lists of open source software.

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

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" }
);
};
```