1.0.7 • Published 4 years ago

@abdulghani/combinereducer v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

combineReducers function

this is a lightweight combineReducers function for reducers. works with either redux or useReducer.

installation

yarn

yarn add @abdulghani/combinereducer

npm

npm install @abdulghani/combinereducer

usage

import combineReducer from "@abdulghani/combinereducer";
import { reducerOne, reducerTwo } from "somewhere";

const combinedReducers = combineReducer({
  page: reducerOne,
  data: reducerTwo
});

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

  // render
};
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago