Redux Docs Flashcards

1
Q

What is Redux?

A

A predictable state container for JavaScript apps.

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

What are the three main ways that Redux helps?

A
  1. Writing applications that behave consistently
  2. Writing apps that run in different environments (client, server, and native)
  3. Writing apps that are easy to test.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How tiny is Redux?

A

So, so tiny - about 2kb.

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

How does Redux store the whole state of your app?

A

In an object tree inside of a single store.

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

What is the only way to change the Redux state?

A

To emit an action.

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

What is an action?

A

An object describing what happened to cause a change in state.

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

What is a pure reducer?

A

A reducer specifies how the actions transform the state tree.

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