reading-notes

View the Project on GitHub Abu-laban/reading-notes

Application State with Redux

Review, Research, and Discussion

Redux stores all application state in a single javascript object called the state tree. All mutations and changes to the state data object are explicit, so we can keep track of them easily. The state tree is redundant, so we must use an action method to modify the data.

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

Local Storage is vulnerable to XSS attacks, and cookies are automatically attached to every HTTP request on your server. src

2. Explain 3rd party cookies.

First-party cookies live on the website you are currently visiting. Third-party cookies are created by websites other than the one you are currently visiting. src

3. How do pixel tags work?

As a pixel loads, it runs associated javascript code which does a given action. In the context of advertising, these often collect and send data back to some third party.

Document the following Vocabulary Terms

cookies - a small piece of data sent from a server to a client, which is then attached to every client request back to that server.

authorization - a HTTP request header that contains required authentication credentials.

access control - the process of requiring client authenticaion to verify different levels of access on a server.

conditional rendering - the process of using React to render certain components or elements based on conditional logic.

Preparation Materials

Dan Abramov Redux Tutorials

worlds easiest guide to redux

testing reducers

Redux Docs