const RESET = 'MODULE_NAME::RESET';
const reset => () => ({ type: RESET });
const initialState = {
// someState
};
const reducer = (state = initialState, action) => {
const { type, payload } = action;
switch (type) {
case RESET:
return initialState;
// ...
}
};