• Type Parameters

    • R extends Reducer<any, any>
    • T

    Parameters

    • reducer: R
    • defaultState: T
    • key: string
    • Optional initFunc: ((arg) => ReducerState<R>)
        • (arg): ReducerState<R>
        • Parameters

          • arg: T

          Returns ReducerState<R>

    Returns [ReducerState<R>, Dispatch<ReducerAction<R>>]

Generated using TypeDoc