npm i @saber2pr/use-reducer
export const initState = {
current: 100,
delta: 1
}
export const [getState, useReducer] = createStore(initState)
// useReducer
const [state, dispatch] = useReducer(reducer, initialState)
// const [state, dispatch] = useReducer(reducer, initialState, initialAction)
// getState
const globalState = getState()
saber2pr