Skip to the content.

Read: Class 36 : Application State with Redux

img

Review, Research, and Discussion

What are the advantages of storing tokens in “Cookies” vs “Local Storage”

Explain 3rd party cookies :

How do pixel tags work?

Document the following Vocabulary Terms

Preparation Materials

Redux

One application state object managed by one store

Why use Redux?

how to use Redux in react

  1. create store as we create context
  2. pass store and context to provider
  3. imported as context exactly

How Redux works

An action creator

is a function that creates and returns an action object. We typically use these so we don’t have to write the action object by hand every time:

A reducer

is a function that receives the current state and an action object, decides how to update the state if necessary, and | returns the new state: (state, action) => newState.

Resources