📅  最后修改于: 2022-03-11 15:03:42.559000             🧑  作者: Mango
const [state, dispatch] = React.useReducer(reducer, initialState);
const value = { state, dispatch };
return {props.children} ;