Adding the constants

Next up is adding the constants. Constants are a nice thing to have; they protect us from making mistakes due to us mistyping when we deal with action creators as well as reducers:

// counter/counter-list/counter-list.constants.ts

export const ADD_COUNTER_ITEM = "add counter item";
export const REMOVE_COUNTER_ITEM = "remove counter item";
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.141.125