Skip to content

FlashcardNot attempted

Redux in three sentences

Recall it before you reveal

Explain the Redux data flow and what a slice is.

Space to reveal
Show answer & explanation

One store holds the app state. Components dispatch actions (plain objects describing what happened), and pure reducers return the next state immutably. Subscribers (via useSelector) re-render only if the part of state they select changed.

A slice (Redux Toolkit) bundles one feature's state, reducers and generated action creators; the root state is the combination of slices. Middleware (thunks, listeners) handles side effects and async.