getState()
: get the states of the current storedispatch()
: dispatch action linked to the actionsubsribve()
: render the content/state, so the UI can be updated
combineReducers()
is helpful because it allows the developer to define the state and action in a single function. It combines the state and the reducer in a single object. This allows the developer to combine all the reducers in a single statement so multiple reducers can be called using a single reducerhttps://egghead.io/courses/getting-started-with-redux ↩