@abdulghani/combinereducers 中文文档教程
combineReducers function
这是一个用于 reducer 的轻量级 combineReducers 函数。
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
}
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
}
更多
你可能也喜欢
- 01_harun_pitchaipandi_dev_environment 中文文档教程
- 1tree 中文文档教程
- @0x/contracts-coordinator 中文文档教程
- @12luckydev/array-handler 中文文档教程
- @2003scape/rsc-news-archives 中文文档教程
- @4geit/rct-chatbox-list-component 中文文档教程
- @a11ycore/selenium 中文文档教程
- @aabao/webpack-panorama 中文文档教程
- @abbica/material 中文文档教程
- @abbott-platform/api-ai-botkit 中文文档教程