reading-notes

These are my reading notes for Code Fellows


Project maintained by taegorov Hosted on GitHub Pages — Theme by mattgraham

Home

Redux - Combined Reducers

If you have a larger application with a lot of state updates.

It determines changes to our application’s state, using the action it receives to decide which change to make. (source)

Two keys and their values. For example:

const action = {
  type: 'NEW_CONTACT',
  name: 'Tim Egorov',
}

(source)

If the new state is different, the reducer must create new object, and making a copy is a way to describe the unchanged part. (source)

Document the following Vocabulary Terms:

Immutability can bring increased performance to your app, and leads to simpler programming and debugging, as data that never changes is easier to reason about than data that is free to be changed arbitrarily throughout your app. (source)

The Redux DevTools records dispatched actions and the state of the Redux store at every point in time. This makes it possible to inspect the state and travel back in time to a previous application state without reloading the pace or restarting the app. (source)

An action creator is merely a function that returns an action object. (source)

Reducers are functions that take the current state and an action as arguments, and return a new state result. In other words, (state, action) => newState.

(source)

dispatch is a function of the Redux store. You call store.dispatch to dispatch an action. This is the only way to trigger a state change. (source)