Redux Toolkit Flashcards

1
Q

configureStore()

A

Creates redux store. Accepts reducer function as a named argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

Reducer function

A

Defines how the state can be updated.

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

Wraps entire app and pass the store as prop.

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

useSelector()

A

Reads data from the store.

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

useDispatch()

A

use for dispatching (sending) actions.

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