Redux Toolkit Flashcards
1
Q
configureStore()
A
Creates redux store. Accepts reducer function as a named argument.
2
Q
createSlice()
A
API service “slice” object structure contains Redux logic. Needs to have string as a name, initial state, and one or more reducer functions.
3
Q
Reducer function
A
Defines how the state can be updated.
4
Q
A
Wraps entire app and pass the store as prop.
5
Q
useSelector()
A
Reads data from the store.
6
Q
useDispatch()
A
use for dispatching (sending) actions.