react-use-dispatch-multiple

1.0.1 • Public • Published

react-use-dispatch-multiple

A React Hook for dispatching multiple actions in Redux.

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i react-use-dispatch-multiple

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.24 kB

Total Files

4

Last publish

Collaborators

  • saiansh2525