Middleware Hooks

Introduction

A collection of React hooks to enhance useReducer to be more useful and powerful. Middleware hooks was inspired by middleware ecosystem of Redux.

This hooks will help by abstracting complex logic like for undo-redo, or will help in debugging by logging action and state details.

Install

# Using Yarn:
yarn add middleware-hooks
# Using NPM:
npm i middleware-hooks

Features

  • Simple API
  • Easy to learn and use
  • Lightweight

Please read the documentation before using any hooks.