@tempots/dom
Prop.reducer property
Creates a reducer function that combines the provided reducer function and effects.
Signature:
readonly reducer: (fn: (acc: T, value: A) => T, ...effects: ReducerEffect[]) => (action: A) => void;
Creates a reducer function that combines the provided reducer function and effects.
Signature:
readonly reducer: (fn: (acc: T, value: A) => T, ...effects: ReducerEffect[]) => (action: A) => void;