3.
What are the three fundamental principles underlying Redux?
Component encapsulation
Action-driven updates
Immutable state
Single source of truth
Correct: B, C, D
The three fundamental principles of Redux are:
Single source of truth: The state of the entire application is stored in a single object tree within a single store.
Immutable state: The state is read-only, and any changes are made by creating a new object with the updated state. This allows for predictable state changes.
Action-driven updates: The state can only be modified by dispatching actions, which are plain JavaScript objects that describe what should change in the state. The state is updated based on these actions through pure functions called reducers.