Function useContextReducer

  • Type Parameters

    • F

    • T

    • R

    • M

    Parameters

    • __namedParameters: {
          actionTypes: Record<string, M>;
          actions: F;
          initialState: T;
          reducer: ((state: T, action: R) => T);
      }
      • actionTypes: Record<string, M>
      • actions: F
      • initialState: T
      • reducer: ((state: T, action: R) => T)
          • (state: T, action: R): T
          • Parameters

            • state: T
            • action: R

            Returns T

    Returns {
        value: {
            actions: F;
            state: T;
        };
    }

    • value: {
          actions: F;
          state: T;
      }
      • actions: F
      • state: T

Generated using TypeDoc