1.0.16 • Published 5 years ago

@abdulghani/logreducer v1.0.16

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

logReducer function for reducer

this is a simple function for reducer. it's a pure function, not a react component or react hook (which is good/not for react concurrent mode). works for redux and useReducer.

Installation

yarn

yarn add @abdulghani/logreducer

npm

npm install @abdulghani/logreducer

Usage

import logReducer from "@abdulghani/logreducer";
import reducer from "somewhere";

// setup your reducer
const loggedReducer = logReducer(reducer);

const MyApp = () => {
  const [state, dispatch] = useReducer(loggedReducer);

  // render function
};
1.0.16

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.12

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago