Redux Docs Flashcards
1
Q
What is Redux?
A
A predictable state container for JavaScript apps.
2
Q
What are the three main ways that Redux helps?
A
- Writing applications that behave consistently
- Writing apps that run in different environments (client, server, and native)
- Writing apps that are easy to test.
3
Q
How tiny is Redux?
A
So, so tiny - about 2kb.
4
Q
How does Redux store the whole state of your app?
A
In an object tree inside of a single store.
5
Q
What is the only way to change the Redux state?
A
To emit an action.
6
Q
What is an action?
A
An object describing what happened to cause a change in state.
7
Q
What is a pure reducer?
A
A reducer specifies how the actions transform the state tree.