
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
react-use-bireducer
Advanced tools
React hook for managing effects from reducers.
yarn add react-use-bireducer
# or
npm install react-use-bireducer
The API is very close to useReducer, except that:
[State, Effect[]] instead of Stateimport {useBireducer} from "react-use-bireducer";
declare function stateReducer(state: State, action: Action): [State, Effect[]];
declare function effectReducer(effect: Effect): EffectCleanup | void;
const [state, dispatch] = useBireducer(stateReducer, effectReducer, defaultState);
See a complete example on CodeSandbox.
Development environment is managed by Nix. First you need to install it:
curl -L https://nixos.org/nix/install | sh
Then you can start your development environment by spawning a Nix shell:
nix-shell
Now you should be able to clone the repo and install Node.js dependencies:
git clone https://github.com/soywod/react-use-bireducer.git
cd react-use-bireducer
yarn
You can leave the development environment either by killing your
terminal or by entering the command exit.
Tests are handled by Jest (.test files) and
React Testing
Library
(.spec files).
yarn test
FAQs
React hook for managing effectful reducers.
The npm package react-use-bireducer receives a total of 7,653 weekly downloads. As such, react-use-bireducer popularity was classified as popular.
We found that react-use-bireducer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.