We also need to define the action methods. These are just functions that will help us create our actions, so it's less for us to type:
// counter/counter-list/counter-list.actions.tsimport { ADD_COUNTER_ITEM, REMOVE_COUNTER_ITEM} from "./counter-list.constants";export const addItem = (title, id) => ({ type: ADD_COUNTER_ITEM, payload: { id, title }});export const removeItem = id => ({ type: REMOVE_COUNTER_ITEM, payload: { id }});