Redux Flashcards

1
Q

Store

A

This holds the whole state (all your data) for your app. It is an object with a few methods on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Actions

A

Payloads of information that send data from your application to your store. They are the only source of information for the store.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Reducers

A

Specify how the application’s state changes in response in response to an action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Provider

A

From react-redux. We wrap our app in this, and pass “store” to it as a prop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Action Creators

A

Functions that return actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dispatching

A

Synchronously sending an action to the store’s reducer, along with the previous state returned by the store, to calculate a new state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Thunk

A

Allows you to write action creators that return a function instead of an action. It can be used to delay the dispatch. Makes asynchronous stuff easier to work with.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

getState()

A

Store method that returns the current state tree of your application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

dispatch(action)

A

Store method that dispatches an action. This is the only way to trigger a state change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

subscribe(listener)

A

Store method that adds a change listener. It will be called any time an action is dispatched, and some part of the state tree may potentially have changed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

combineReducers()

A

Store helps combine the difference pieces of React that we separated for organizational reasons.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly