@abdulghani/combinereducers
v1.0.1
Published
lightweight combinereducer function for reducers
Downloads
5
Maintainers
Readme
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
}