@abdulghani/combinereducers

1.0.1 • Public • Published

combineReducers function

this is a lightweight combineReducers function for reducers.

usage

  import combineReducers from "@abdulghani/combinereducers";
  import { reducerOne, reducerTwo } from "somewhere";
  
  const combinedReducers = combineReducers({
    page: reducerOne,
    data: reducerTwo
  });

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

    // render
  }

/@abdulghani/combinereducers/

    Package Sidebar

    Install

    npm i @abdulghani/combinereducers

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.18 kB

    Total Files

    4

    Last publish

    Collaborators

    • abdulghani